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.

application/json

Body Required

  • name string

    The updated name of the resource.

    Minimum length is 1.

  • The updated access token TTL in seconds.

Responses

  • 200 application/json

    The updated resource.

    Hide response attributes Show response attributes object
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

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
}