Skip to main content
PUT
/
templates
/
{id}
Update template
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>"
    }
  ]
}
'
{
  "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": {
      "title": "<string>",
      "description": "<string>",
      "steps": [
        {
          "title": "<string>",
          "description": "<string>",
          "instructions": "<string>",
          "order": 1,
          "examples": [
            "<string>"
          ],
          "action": "<string>",
          "actionMetadata": {
            "templateName": "Appointment Confirmation",
            "templateBody": "Your appointment is scheduled for tomorrow at 3 PM."
          },
          "childSteps": [
            {
              "title": "<string>",
              "description": "<string>",
              "instructions": "<string>",
              "order": 1,
              "examples": [
                "<string>"
              ],
              "action": "<string>",
              "actionMetadata": {
                "templateName": "Appointment Confirmation",
                "templateBody": "Your appointment is scheduled for tomorrow at 3 PM."
              }
            }
          ]
        }
      ],
      "enabled": true,
      "usageContext": "<string>",
      "order": 0
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.helloannie.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

templateId
string<uuid>
required

Body

Request body for updating a workflow template. All fields are optional.

name
string
Required string length: 1 - 255
description
string | null
variables
object[]
workflow
object

Response

Response containing the updated template

success
enum<boolean>
required
Available options:
true
data
object
required