Set API resource as default
Set an API resource as the default resource for the current tenant.
Each tenant can have only one default API resource. If an API resource is set as default, the previously set default API resource will be set as non-default. See this section for more information.
Path parameters
-
The unique identifier of the resource.
PATCH /api/resources/{id}/is-default
curl \
-X PATCH https://[tenant_id].logto.app/api/resources/{id}/is-default \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"isDefault":true}'
Request examples
{
"isDefault": true
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"name": "string",
"indicator": "string",
"isDefault": true,
"accessTokenTtl": 42.0
}