Organizations
Remove an owner from the current organization
- NOT_FOUND when
user_idis not a member of the organization.- FAILED_PRECONDITION when they are the last owner. An organization always has at least one.
Scope: organization:write
Authorization
bearerAuth AuthorizationBearer <token>
An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
organization*string
The organization id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
RemoveOrganizationOwnerRequest names an owner to make a member again.
Response Body
application/json
curl -X POST "https://example.com/v1/organizations/string/remove-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" }}Get the current organization GET
- NOT_FOUND when the resource name is not the caller's organization. Scope: `organization:read`
Create a change set POST
- NOT_FOUND when no environment has the resource name in `parent`. - FAILED_PRECONDITION and ALREADY_EXISTS for an edit, as EditChangeSet says. Scope: `changeset:write`