curl --request PUT \
--url https://api.helloannie.com/v1/templates/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"variables": [
{
"name": "<string>",
"type": "STRING",
"description": "<string>"
}
],
"workflow": {
"title": "<string>",
"description": "<string>",
"steps": [
{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"order": 1,
"examples": [
"<string>"
],
"action": "<string>",
"actionMetadata": {},
"childSteps": [
{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"order": 1,
"examples": [
"<string>"
],
"action": "<string>",
"actionMetadata": {}
}
]
}
],
"enabled": true,
"usageContext": "<string>",
"order": 0
}
}
'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"version": 123,
"createdAt": "<string>",
"variables": [
{
"name": "<string>",
"type": "STRING",
"description": "<string>"
}
],
"workflow": {}
}
}Update an existing workflow template. All fields are optional. When the workflow definition changes, the template version is incremented.
curl --request PUT \
--url https://api.helloannie.com/v1/templates/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"variables": [
{
"name": "<string>",
"type": "STRING",
"description": "<string>"
}
],
"workflow": {
"title": "<string>",
"description": "<string>",
"steps": [
{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"order": 1,
"examples": [
"<string>"
],
"action": "<string>",
"actionMetadata": {},
"childSteps": [
{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"order": 1,
"examples": [
"<string>"
],
"action": "<string>",
"actionMetadata": {}
}
]
}
],
"enabled": true,
"usageContext": "<string>",
"order": 0
}
}
'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"version": 123,
"createdAt": "<string>",
"variables": [
{
"name": "<string>",
"type": "STRING",
"description": "<string>"
}
],
"workflow": {}
}
}Request body for updating a workflow template. All fields are optional.