---
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.

---

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