Organizations
Add an owner to the current organization
- NOT_FOUND when
user_idis not a member of the organization.
Scope: organization:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The organization id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
AddOrganizationOwnerRequest names a member to make an owner.
Response Body
application/json
curl -X POST "https://example.com/v1/organizations/string/add-owner" \ -H "Content-Type: application/json" \ -d '{ "user_id": "string" }'{ "organization": { "id": "string", "name": "string", "display_name": "string", "resource_name": "string", "avatar_url": "string", "status": "STATUS_UNSPECIFIED", "owner_ids": [ "string" ], "etag": "string", "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}Update the current organization PATCH
Only `display_name` is mutable. The `name` is part of the account's identity and `status` is set by lifecycle operations, neither of which an organization performs on itself. The logo is set in the console. - INVALID_ARGUMENT when the mask names a field that can't be updated. - ABORTED when `etag` is set and the organization changed since it was read. Scope: `organization:write`
Get the current organization GET
- NOT_FOUND when the resource name is not the caller's organization. Scope: `organization:read`