For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.genAi.agents.byAgent_uuId(agent_uuId).versions.put(body: ApiRollbackToAgentVersionInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiRollbackToAgentVersionOutput>
Description
To update to a specific agent version, send a PUT request to /v2/gen-ai/agents/{uuid}/versions.
Parameters
Path Parameters
agent_uuId string required
Example: "123e4567-e89b-12d3-a456-426614174000"
Agent unique identifier
Request Body
uuid string optional
Example: "12345678-1234-1234-1234-123456789012"
Agent unique identifier
versionHash string optional
Example: c3658d8b5c05494cd03ce042926ef08157889ed54b1b74b5ee0b3d66dcee4b73
Unique identifier
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.genAi.agents
.byAgent_uuId("\"123e4567-e89b-12d3-a456-426614174000\"").versions.put({
uuid: "\"12345678-1234-1234-1234-123456789012\"",
versionHash: "c3658d8b5c05494cd03ce042926ef08157889ed54b1b74b5ee0b3d66dcee4b73",
});
Response Example
Show Response Example
{
"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"
}
See /v2/gen-ai/agents/{uuid}/versions in the API reference for additional detail on responses, headers, parameters, and more.