---
title: "Change the workspace's AI Agent controls (managers only)"
method: PATCH
path: "/agents/access/settings"
tags: ["AI", "Agents"]
---

# Change the workspace's AI Agent controls (managers only)

`PATCH /agents/access/settings`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/agents/access/settings`
- 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`

A partial body: a field left out stays as it is.

## Request body

- AgentSettingsPatch
  - `enabled` boolean, nullable
  - `can_make_changes` boolean, nullable
  - `downloads` boolean, nullable
  - `viewers_explore` boolean, nullable
  - `managers` string[], nullable
  - `role_exceptions` RoleException[], nullable
    - `role` string, required
    - `has_agent` boolean
    - `can_make_changes` boolean

## Response `200`

Request fulfilled, document follows

- AgentSettings
  - `enabled` boolean
  - `can_make_changes` boolean
  - `downloads` boolean
  - `viewers_explore` boolean
  - `managers` string[]
  - `role_exceptions` RoleException[]
    - `role` string, required
    - `has_agent` boolean
    - `can_make_changes` boolean

## 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/4b2c943a00dc?raw)
