cURL
curl --request POST \ --url https://agents.studio.getsupervisor.ai/v1/agents/{agentId}/versions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-workspace-id: <x-workspace-id>' \ --data ' { "notes": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "draft", "versionNumber": 2, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "versionHash": "<string>", "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "notes": "<string>", "publishedAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Identificador del workspace multi-tenant.
Identificador del agente
2000
Versión creada
draft
active
archived
x >= 1