Update API resource scope
Update an API resource scope (permission) for the given resource. This method performs a partial update.
Path parameters
-
resourceId
string Required The unique identifier of the resource.
-
scopeId
string Required 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 \
--request PATCH 'https://[tenant_id].logto.app/api/resources/{resourceId}/scopes/{scopeId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"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
}