---
title: "Update a host access grant"
method: PATCH
path: "/rbac/host/{id}/access/{accessId}"
tags: ["RBAC"]
---

# Update a host access grant

`PATCH /rbac/host/{id}/access/{accessId}`

Changes the permission level and/or expiry of an existing host access grant. Allowed for the host owner or recipients holding the manage level.

## Path parameters

- `id` integer, required
- `accessId` integer, required

## Request body

- object
  - `permissionLevel` 'connect' | 'view' | 'edit' | 'manage'
  - `durationHours` number, nullable — Hours from now until the grant expires; null clears the expiry.

## Response `200`

Grant updated successfully.

## Other responses

- `400` — Invalid request.
- `403` — Caller may not manage sharing on this host.
- `404` — Grant not found.
- `500` — Failed to update grant.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
