Add organization JIT default roles

POST /api/organizations/{id}/jit/roles

Add new organization roles that will be assigned to users during just-in-time provisioning.

Path parameters

  • id string Required

    The unique identifier of the organization.

application/json

Body Required

  • organizationRoleIds array[string] Required

    The organization role IDs to add.

    Minimum length of each is 1.

Responses

  • 201 application/json

    The organization roles were added successfully.

  • Bad Request

  • Unauthorized

  • Forbidden

  • The organization roles could not be added. Some of the organization roles may not exist.

POST /api/organizations/{id}/jit/roles
curl \
 -X POST https://[tenant_id].logto.app/api/organizations/{id}/jit/roles \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"organizationRoleIds":["string"]}'
Request examples
{
  "organizationRoleIds": [
    "string"
  ]
}