Team

Update a team member

Changed on

Changes a member's role or credit limit. role is admin or member; the owner keeps the admin role until ownership is transferred. credit_cap is the most credits the member's chats and tasks may use per billing cycle; null removes the limit. Only admins change the team, and an agent's call always asks the user first.

patch/team/members/{id}

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.

Request body

object required
role, 'admin' | 'member'
credit_cap, integer nullable

Credits per billing cycle; null removes the limit.

Response

The updated member

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