For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
    • Data Models
    • API Conventions
  • Data Models
      • GETRetrieve Organization
      • PUTUpdate Organization
        • GETList Organization Members
        • PUTUpdate Organization Member Role
        • DELRemove Organization Member
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsOrganizationMembers

Update Organization Member Role

PUT
https://api.confident-ai.com/v1/organization/members/:userId
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"
>}'
200Updated
1{
2 "success": true,
3 "data": {
4 "member": {
5 "id": "user-uuid-2",
6 "email": "bob@example.com",
7 "name": "Bob",
8 "image": null,
9 "organizationRole": {
10 "id": "role-uuid-1",
11 "name": "Admin"
12 }
13 }
14 }
15}

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

Was this page helpful?
Previous

Remove Organization Member

Next
Built with

Path parameters

userIdstringRequired
The unique identifier of the member.

Headers

CONFIDENT_API_KEYstringRequired
The organization API key for your Confident AI organization.

Request

This endpoint expects an object.
roleIdstringRequired
The id of the role to assign to the member.

Response

successboolean
Indicates if the request was successful
dataobject