GET
/
templates
Get template information
curl --request GET \
  --url https://{FUSION_HOST.com}/api/templating/templates
{
  "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>"
    }
  ]
}

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:

"your-app-name"

hideStaging
boolean
default:false

This field indicates if the request is set to retrieve published or unpublished (staging) templates. The default of false retrieves published templates. If set to true, the request retrieves unpublished (staging) templates.

showDirtyOnly
boolean
default:false

This field indicates if the request is set to retrieve published or unpublished (staging) templates. The default of false retrieves published templates. If set to true, the request retrieves unpublished (staging) templates.

showPublished
boolean
default:false

This field indicates if the request is set to retrieve published or unpublished (staging) templates. If set to true, only published templates are retrieved. If set to false, the request retrieves unpublished (staging) templates.

Response

200
application/json

OK

The response is of type object.