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 Roles
        • POSTCreate Organization Role
        • PUTUpdate Organization Role
        • DELDelete Organization Role
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsOrganizationRoles

Create Organization Role

POST
https://api.confident-ai.com/v1/organization/roles
POST
/v1/organization/roles
$curl -X POST https://api.confident-ai.com/v1/organization/roles \
> -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "Billing Manager",
> "policyIds": [
> "policy-uuid-2"
> ],
> "description": "Can manage billing only"
>}'
200Successful
1{
2 "success": true,
3 "data": {
4 "role": {
5 "id": "role-uuid-3",
6 "name": "Billing Manager",
7 "description": "Can manage billing only",
8 "organizationId": "ORGANIZATION-ID",
9 "policies": [
10 {
11 "id": "policy-uuid-2",
12 "name": "Manage billing"
13 }
14 ]
15 }
16 }
17}

Creates a custom organization role from a set of policies. The role name must be unique within your organization and cannot collide with a system-defined role name.

Was this page helpful?
Previous

Update Organization Role

Next
Built with

Headers

CONFIDENT_API_KEYstringRequired
The organization API key for your Confident AI organization.

Request

This endpoint expects an object.
namestringRequired

Name of the role (must be unique within the organization and cannot be a system role name)

policyIdslist of stringsRequired
The ids of the policies to attach to this role
descriptionstring or nullOptional
Optional description of the role

Response

successboolean
Indicates if the request was successful
dataobject