Astrocal
API ReferenceTeamV1OrganizationsOrgidTransfer ownership

Transfer ownership

Transfers organization ownership to another member. The current owner becomes an admin.

POST
/v1/organizations/{orgId}/transfer-ownership

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

In: header

Path Parameters

orgId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/transfer-ownership" \  -H "Content-Type: application/json" \  -d '{    "member_id": "435a4844-006a-4cfc-a644-e8eb2dd2ca43"  }'
{
  "success": true
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}