Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
versions
/
{versionId}
/
instructions
Agregar una instrucción a la versión del agente
curl --request POST \
  --url https://agents.studio.getsupervisor.ai/v1/agents/{agentId}/versions/{versionId}/instructions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "order": 0,
  "content": "Manten el saludo breve y directo.",
  "status": "active"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order": 123,
  "content": "<string>",
  "status": "active",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

agentId
string<uuid>
required

Identificador del agente

versionId
string<uuid>
required

Identificador de la versión del agente

Body

application/json
order
integer
required
Required range: x >= 0
content
string
required

Texto libre (1-500 caracteres) que corrige o refuerza el comportamiento del agente.

Required string length: 1 - 500
status
enum<string>

Estado inicial de la instrucción. Si se omite, es active.

Available options:
active,
inactive

Response

Instrucción creada para la versión

id
string<uuid>
required
agentId
string<uuid>
required
versionId
string<uuid>
required
order
integer
required
content
string
required

Texto libre que guía el comportamiento del agente.

Required string length: 1 - 500
status
enum<string>
required

Controla si la instrucción está habilitada para el agente.

Available options:
active,
inactive
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
deletedAt
string<date-time> | null

Timestamp de borrado suave. Nulo cuando la instrucción sigue disponible.