---
title: "Update graph settings"
method: PATCH
path: "/api/graphs/{graph_id}/settings"
tags: ["v1", "graphs"]
---

# Update graph settings

`PATCH /api/graphs/{graph_id}/settings`

Update graph settings for the user's library agent.

## Path parameters

- `graph_id` string, required

## Request body

- GraphSettings
  - `human_in_the_loop_safe_mode` boolean
  - `sensitive_action_safe_mode` boolean
  - `builder_chat_session_id` string, nullable

## Response `200`

Successful Response

- GraphSettings
  - `human_in_the_loop_safe_mode` boolean
  - `sensitive_action_safe_mode` boolean
  - `builder_chat_session_id` string, nullable

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
