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>"
    }
  ],
  "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": {}
  }
}

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