---
title: "Change a person's access (managers only)"
method: PATCH
path: "/agents/access/grants/{grant_id}"
tags: ["AI", "Agents"]
---

# Change a person's access (managers only)

`PATCH /agents/access/grants/{grant_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/agents/access/grants/{grant_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Path parameters

- `grant_id` integer, required

## Request body

- GrantPatch
  - `level` 'ask' | 'explore', nullable
  - `items` GrantItem[], nullable
    - `project_id` integer, required
    - `file_ids` integer[], nullable

## Response `204`

Request fulfilled, nothing follows

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
