---
title: "Update a Credential"
method: POST
path: "/acs/credentials/update"
tags: ["/acs"]
---

# Update a Credential

`POST /acs/credentials/update`

Updates the code and ends at date and time for a specified [credential](/low-level-apis/access-systems/managing-credentials).

## Request body

- object
  - `acs_credential_id` string, required — ID of the credential that you want to update.
  - `code` string — Replacement access (PIN) code for the credential that you want to update.
  - `ends_at` string, date-time — Replacement date and time at which the validity of the credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after the `starts_at` value that you set when creating the credential.

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/seam/apis/seam-connect.md) · [All operations](https://skmtc.net/seam/apis/seam-connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seam/seam-connect/revisions/00c35395ce12/schema)
