Create API resource scope
Create a new scope (permission) for an API resource.
POST
/api/resources/{resourceId}/scopes
curl \
--request POST 'https://[tenant_id].logto.app/api/resources/{resourceId}/scopes' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string","description":"string"}'
Request examples
{
"name": "string",
"description": "string"
}
Response examples (201)
{
"tenantId": "string",
"id": "string",
"resourceId": "string",
"name": "string",
"description": "string",
"createdAt": 42.0
}