PUT
/
agents
/
{agentId}
/
versioned_prompts
/
{id}
curl --request PUT \
  --url https://api.vogent.ai/api/agents/{agentId}/versioned_prompts/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "aiModelId": "<string>",
  "agentType": "STANDARD",
  "prompt": "<string>",
  "flowDefinition": {
    "nodes": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "transitionRules": [
          {
            "conditionType": "always",
            "arrayConditionType": "any",
            "field": "<string>",
            "value": "<string>",
            "values": [
              "<string>"
            ],
            "transitionNodeId": "<string>"
          }
        ],
        "nodeData": {}
      }
    ],
    "globalContext": "<string>",
    "aiOpen": true
  },
  "name": "<string>",
  "modelOptionValues": [
    {
      "optionId": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "agentType": "STANDARD",
  "prompt": "<string>",
  "flowDefinition": {
    "nodes": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "transitionRules": [
          {
            "conditionType": "always",
            "arrayConditionType": "any",
            "field": "<string>",
            "value": "<string>",
            "values": [
              "<string>"
            ],
            "transitionNodeId": "<string>"
          }
        ],
        "outputSchema": "<string>",
        "nodeData": {}
      }
    ],
    "globalContext": "<string>",
    "aiOpen": true
  },
  "aiModelId": "<string>",
  "modelOptionValues": [
    {
      "optionId": "<string>",
      "value": "<string>"
    }
  ]
}

Path Parameters

agentId
string
required

ID of the agent.

id
string
required

ID of the versioned prompt.

Body

application/json

Updates a versioned prompt

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.