Assign organization scopes to organization role

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
POST /api/organization-roles/{id}/scopes

Assign organization scopes to the specified organization role

Path parameters

  • id string Required

    The unique identifier of the organization role.

application/json

Body Required

  • organizationScopeIds array[string] Required

    An array of organization scope IDs to be assigned. Existed scope IDs assignments will be ignored.

    Minimum length of each is 1.

Responses

  • 201 application/json

    Organization scopes were assigned successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 422

    At least one of the IDs provided is invalid. For example, the organization scope ID does not exist;

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