Update agent trigger using XanoScript
Authentication: required
curl --request PUT \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/agent/trigger/{trigger_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'agent_trigger foo {
agent = "my_agent"
input {
object toolset {
schema {
int id
text name
text instructions
}
}
object[] tools {
schema {
int id
text name
text instructions
}
}
}
stack {
var $x1 {
value = 123
}
}
actions = {connection: true}
}
'{
"id": 1,
"created_at": "2023-04-19 21:01:32+0000",
"updated_at": "2023-04-19 21:01:32+0000",
"name": "Agent Trigger",
"description": "My agent trigger test description",
"guid": "YE1fwVhQ-enRlc6Sb42Gqru58-0",
"branch": "v1",
"tag": [
"example tag"
],
"actions": {
"connection": true
},
"xanoscript": {
"status": "ok",
"value": "<string>",
"message": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The body is of type string.
"agent_trigger foo {\n agent = \"my_agent\"\n input {\n object toolset {\n schema {\n int id\n text name\n text instructions\n }\n }\n object[] tools {\n schema {\n int id\n text name\n text instructions\n }\n }\n }\n stack {\n var $x1 {\n value = 123\n }\n }\n actions = {connection: true}\n}\n"
Success!
Show child attributes
Show child attributes
Was this page helpful?
curl --request PUT \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/agent/trigger/{trigger_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'agent_trigger foo {
agent = "my_agent"
input {
object toolset {
schema {
int id
text name
text instructions
}
}
object[] tools {
schema {
int id
text name
text instructions
}
}
}
stack {
var $x1 {
value = 123
}
}
actions = {connection: true}
}
'{
"id": 1,
"created_at": "2023-04-19 21:01:32+0000",
"updated_at": "2023-04-19 21:01:32+0000",
"name": "Agent Trigger",
"description": "My agent trigger test description",
"guid": "YE1fwVhQ-enRlc6Sb42Gqru58-0",
"branch": "v1",
"tag": [
"example tag"
],
"actions": {
"connection": true
},
"xanoscript": {
"status": "ok",
"value": "<string>",
"message": "<string>"
}
}