---
title: "Set active graph version"
method: PUT
path: "/api/graphs/{graph_id}/versions/active"
tags: ["v1", "graphs"]
---

# Set active graph version

`PUT /api/graphs/{graph_id}/versions/active`

## Path parameters

- `graph_id` string, required

## Request body

- SetGraphActiveVersion
  - `active_graph_version` integer, required

## Response `200`

Successful Response

- SetActiveGraphVersionResponse — Response for activating an existing graph version. Carries any webhook presets that were left pinned to their old version because the newly activated version's trigger block is incompatible and needs to be reconfigured.
  - `skipped_webhook_presets` SkippedWebhookPreset[]
    - `id` string, required
    - `name` string, required
    - `pinned_version` integer, required

## 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)
