---
title: "Update an Access Grant"
method: POST
path: "/access_grants/update"
---

# Update an Access Grant

`POST /access_grants/update`

Updates an existing Access Grant's time window.

## Request body

- object
  - `access_grant_id` string, uuid — ID of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.
  - `access_grant_key` string — Key of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.
  - `ends_at` string, date-time, nullable — Date and time at which the validity of the grant 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 `starts_at`.
  - `name` string, nullable — Display name for the access grant.
  - `starts_at` string, date-time — Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.

## 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/versions/00c35395ce12/schema)
