Add organization application role

POST /api/organizations/{id}/applications/{applicationId}/roles

Add a role to the application in the organization.

Path parameters

  • id string Required

    The unique identifier of the organization.

  • applicationId string Required

    The unique identifier of the application.

application/json

Body Required

Responses

  • 201 application/json

    The role was added successfully.

  • Bad Request

  • Unauthorized

  • Forbidden

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

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