v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_GradientAI Platform

Rollback to Agent Version

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

put/v2/gen-ai/agents/{uuid}/versions

Path parameters

uuidstring required

Agent unique identifier

Request body

uuidstring

Agent unique identifier

version_hashstring

Unique identifier

Example request

{
  "uuid": "\"12345678-1234-1234-1234-123456789012\"",
  "version_hash": "c3658d8b5c05494cd03ce042926ef08157889ed54b1b74b5ee0b3d66dcee4b73"
}

Response

A successful response.

version_hashstring

Unique identifier

Example response

{
  "audit_header": {
    "actor_id": "12345",
    "actor_ip": "example string",
    "actor_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "context_urn": "example string",
    "origin_application": "example string",
    "user_id": "12345",
    "user_uuid": "123e4567-e89b-12d3-a456-426614174000"
  },
  "version_hash": "example string"
}