curl --request POST \
--url https://{FUSION_HOST.com}/api/templating/templates/_import \
--header 'Content-Type: application/json' \
--data '{
"all": false,
"app": "your-app-name",
"dirty": true,
"dirtyZoneIds": [
"a3e0e22-9e6a-45h9-a2e7-5hjk72b9a3ea, 5avc1e65-162d-5b8e-92f0-6a962e0f43c5"
],
"endTime": "2024-08-24T14:15:22Z",
"entityDirty": true,
"id": "<string>",
"markedForDeletion": false,
"metadata": {
"layout": "list"
},
"name": "template-name",
"neverPublished": false,
"priority": 10,
"startTime": "2024-08-24T14:15:22Z",
"templateDirty": true,
"triggers": [
{
"exact": true,
"filters": [
{
"inheritable": true,
"key": "key1",
"value": "value1"
}
],
"matchMode": "all",
"search": "<string>",
"urlContext": "<string>",
"urlPath": "<string>"
}
],
"type": "landing",
"zoneIds": [
"ab6d0e24-9e7a-35h9-a2e7-5hjl72b8a3ea, 2abc1e65-162d-3a8e-76f0-6a962e0f43c5"
]
}'
{
"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>"
}
]
}
Internal use only. Import templates from an existing Fusion application. Use this only for imports and upgrades.
curl --request POST \
--url https://{FUSION_HOST.com}/api/templating/templates/_import \
--header 'Content-Type: application/json' \
--data '{
"all": false,
"app": "your-app-name",
"dirty": true,
"dirtyZoneIds": [
"a3e0e22-9e6a-45h9-a2e7-5hjk72b9a3ea, 5avc1e65-162d-5b8e-92f0-6a962e0f43c5"
],
"endTime": "2024-08-24T14:15:22Z",
"entityDirty": true,
"id": "<string>",
"markedForDeletion": false,
"metadata": {
"layout": "list"
},
"name": "template-name",
"neverPublished": false,
"priority": 10,
"startTime": "2024-08-24T14:15:22Z",
"templateDirty": true,
"triggers": [
{
"exact": true,
"filters": [
{
"inheritable": true,
"key": "key1",
"value": "value1"
}
],
"matchMode": "all",
"search": "<string>",
"urlContext": "<string>",
"urlPath": "<string>"
}
],
"type": "landing",
"zoneIds": [
"ab6d0e24-9e7a-35h9-a2e7-5hjl72b8a3ea, 2abc1e65-162d-3a8e-76f0-6a962e0f43c5"
]
}'
{
"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>"
}
]
}
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.
"app:your-app-name"
The body is of type object
.
OK
The response is of type object
.
Was this page helpful?