Update API resource
PATCH
/api/resources/{id}
Update an API resource details by ID with the given data. This method performs a partial update.
Path parameters
-
id string Required
The unique identifier of the resource.
Body Required
-
name string
The updated name of the resource.
Minimum length is
1
. -
accessTokenTtl number
The updated access token TTL in seconds.
PATCH /api/resources/{id}
curl \
-X PATCH https://[tenant_id].logto.app/api/resources/{id} \
-H "Content-Type: application/json" \
-d '{"name":"string","accessTokenTtl":42.0}'
Request example
{
"name": "string",
"accessTokenTtl": 42.0
}
Response examples (200)
{
"id": "string",
"name": "string",
"indicator": "string",
"isDefault": true,
"accessTokenTtl": 42.0
}