DELETE
/
templates
/
{id}
Mark the specified template for deletion using templateId
curl --request DELETE \
  --url https://{FUSION_HOST.com}/api/templating/templates/{id}
{
  "app": "<string>",
  "id": "6a163bd4-5098-466c-22aa-40bf68294303",
  "name": "Item-Detail Page",
  "all": false,
  "priority": 10,
  "dirty": true,
  "templateDirty": true,
  "markedForDeletion": true,
  "neverPublished": true,
  "type": "landing",
  "zoneIds": [
    "ab6d0e24-9e7a-35h9-a2e7-5hjl72b8a3ea, 2abc1e65-162d-3a8e-76f0-6a962e0f43c5"
  ],
  "dirtyZoneIds": [
    "a3e0e22-9e6a-45h9-a2e7-5hjk72b9a3ea, 5avc1e65-162d-5b8e-92f0-6a962e0f43c5"
  ],
  "metadata": {
    "layout": "list"
  },
  "staging": true,
  "published": true,
  "startTime": "2024-08-24T14:15:22Z",
  "endTime": "2024-08-24T14:15:22Z",
  "triggers": [
    {
      "exact": true,
      "filters": [
        {
          "inheritable": true,
          "key": "key1",
          "value": "value1"
        }
      ],
      "matchMode": "all",
      "search": "<string>",
      "urlContext": "<string>",
      "urlPath": "<string>"
    }
  ]
}

Path Parameters

id
string
required

The universal unique identifier (UUID) of the template.

Query Parameters

context
string

The context parameter retrieves templates for the specified application. The parameter format is app:your-app-name. Only the first application listed in the context is displayed even if a comma-delimited list is entered in the parameter.

Example:

"app:your-app-name"

Response

200
application/json

OK

The response is of type object.