Launch Week 02 wrapped — explore all five launches

Update Organization Member Role

PUThttps://api.confident-ai.com/v1/organization/members/{userId}

Changes a member's organization role. Assigning the Owner role to another member transfers ownership, demoting the current Owner to Admin.

PUT/v1/organization/members/{userId}
curl -X PUT "https://api.confident-ai.com/v1/organization/members/{userId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "roleId": "role-uuid-1"
}'
200
{
  "success": true,
  "data": {
    "member": {
      "id": "user-uuid-2",
      "email": "bob@example.com",
      "name": "Bob",
      "image": null,
      "organizationRole": {
        "id": "role-uuid-1",
        "name": "Admin"
      }
    }
  }
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • userIdstringRequired

    The unique identifier of the member.

Request body

  • roleIdstringRequired

    The id of the role to assign to the member.

Response

  • successboolean

    Indicates if the request was successful

  • dataobject

    Show 1 propertyHide 1 property
    • memberobject

      Show 5 propertiesHide 5 properties
      • idstring

        Unique identifier for the member

      • emailstring

        The member's email address

      • namestring

        The member's display name

      • imagestring

        URL of the member's avatar image

      • organizationRoleobject

        The member's organization role, or null if they have no role

        Show 2 propertiesHide 2 properties
        • idstring

          Unique identifier

        • namestring

          Name

Built byConfident AI