Admiral

Organizations

Remove an owner from the current organization

POST
/v1/organizations/{organization}/remove-owner
  • NOT_FOUND when user_id is 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"  }}