Replace organization JIT default roles

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

Replace all organization roles that will be assigned to users during just-in-time provisioning with the given data.

Path parameters

  • id string Required

    The unique identifier of the organization.

application/json

Body Required

  • organizationRoleIds array[string] Required

    An array of organization role IDs to replace existing organization roles.

    Minimum length of each is 1.

Responses

  • The organization roles were replaced successfully.

  • Bad Request

  • Unauthorized

  • Forbidden

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

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