Update API resource scope
Update an API resource scope (permission) for the given resource. This method performs a partial update.
Path parameters
-
The unique identifier of the resource.
-
The unique identifier of the scope.
Body Required
-
name string
The updated name of the scope. It should be unique for the resource.
Minimum length is
1
, maximum length is256
. -
description string | null
PATCH /api/resources/{resourceId}/scopes/{scopeId}
curl \
-X PATCH https://[tenant_id].logto.app/api/resources/{resourceId}/scopes/{scopeId} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string"}'
Request examples
{
"name": "string",
"description": "string"
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"resourceId": "string",
"name": "string",
"description": "string",
"createdAt": 42.0
}