---
title: "Update API resource"
method: PATCH
path: "/api/resources/{id}"
tags: ["Resources"]
---

# 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

## Request body

- object
  - `tenantId` string
  - `name` string — The updated name of the resource.
  - `accessTokenTtl` number — The updated access token TTL in seconds.

## Response `200`

The updated resource.

- object
  - `tenantId` string, required
  - `id` string, required
  - `name` string, required
  - `indicator` string, required
  - `isDefault` boolean, required
  - `accessTokenTtl` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
