Skip to main content
PATCH
/
v1
/
agents
/
{agentId}
/
stages
/
{stageId}
Actualizar un stage existente
curl --request PATCH \
  --url https://agents.studio.getsupervisor.ai/v1/agents/{agentId}/stages/{stageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "title": "Bienvenida (voz)",
  "goalPrompt": "Saluda, identifica idioma y confirma si es cliente activo antes de continuar.",
  "promptInstructions": [
    "Pregunta si es cliente activo"
  ],
  "order": 0,
  "metadata": {
    "updatedBy": "[email protected]"
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "blueprintId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "goalPrompt": "<string>",
  "promptInstructions": [],
  "order": 123,
  "triggers": [],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "title": "<string>",
  "metadata": {}
}

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

stageId
string<uuid>
required

Identificador del stage dentro del blueprint del agente

Body

application/json
name
string
Minimum string length: 1
title
string | null
goalPrompt
string
Minimum string length: 1
promptInstructions
string[]
order
integer | null
Required range: x >= 0
metadata
object

Response

Stage actualizado

id
string<uuid>
required
agentId
string<uuid>
required
blueprintId
string<uuid>
required
name
string
required

Nombre estable del stage (slug amigable para referencias entre triggers).

Minimum string length: 1
goalPrompt
string
required

Objetivo del stage expresado como prompt de alto nivel.

Minimum string length: 1
promptInstructions
string[]
required

Lista ordenada de instrucciones que contextualizan el goal prompt.

order
integer
required

Posición del stage dentro del blueprint.

triggers
object[]
required

Triggers asociados al stage.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
title
string | null

Título legible que se muestra en el editor.

metadata
object

Campos adicionales definidos por el workspace.