Team

Transfer account ownership

Changed on

Makes another member the account owner. Only the current owner can do this, it cannot be undone by the caller, and it must be confirmed with the user first.

post/team/members/{id}/transfer_ownership

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The member's user id (user_...) or email address.

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Response

The new owner

TeamMember required
object, string required
id, string required
email, string required
name, string nullable required
role, string nullable required
owner, boolean required
teammate, boolean required
agent_list, string nullable required
agent_refusal, string nullable required
credit_cap, integer nullable required
credits_spent_this_cycle, integer nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision