API Documentation
Versioned Prompts
Phone Numbers
Models
Versioned Prompts
Update versioned prompt
Updates a versioned prompt for a given agent.
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
ID of the agent.
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
.
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>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.