---
title: "Rollback to Agent Version"
method: PUT
path: "/v2/gen-ai/agents/{uuid}/versions"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# Rollback to Agent Version

`PUT /v2/gen-ai/agents/{uuid}/versions`

To update to a specific agent version, send a PUT request to `/v2/gen-ai/agents/{uuid}/versions`.

## Path parameters

- `uuid` string, required

## Request body

- ApiRollbackToAgentVersionInputPublic
  - `uuid` string — Agent unique identifier
  - `version_hash` string — Unique identifier

## Response `200`

A successful response.

- ApiRollbackToAgentVersionOutput
  - `audit_header` ApiAuditHeader — An alternative way to provide auth information. for internal use only.
    - `actor_id` string, uint64
    - `actor_ip` string
    - `actor_uuid` string
    - `context_urn` string
    - `origin_application` string
    - `user_id` string, uint64
    - `user_uuid` string
  - `version_hash` string — Unique identifier

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 2 info
  - api tag `DigitalOcean-public.v2-new_GradientAI Platform` added
  - api tag `GradientAI Platform` removed
- **2025-07-18** `f8e8c290636c` — 9 info
  - api operation id `rollback_to_agent_version` removed and replaced with `genai_rollback_to_agent_version`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …5 more
- **2025-07-17** `5fc9af728e82` — 1 breaking, 3 warning, 8 info
  - request body became required
  - the optional response header `ratelimit-limit` removed for the status `200`
  - the optional response header `ratelimit-remaining` removed for the status `200`
  - the optional response header `ratelimit-reset` removed for the status `200`
  - …8 more
- **2025-07-17** `f8e8c290636c` — 9 info
  - api operation id `rollback_to_agent_version` removed and replaced with `genai_rollback_to_agent_version`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …5 more

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/gen-ai/agents/:uuid/versions/put.md)

---

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