Apply / Upload Template (LE)
4 min
Apply / Upload Template (LE)
UI trigger: System -> Device Management -> Templates -> Apply Template (downloads a .zip, then re-uploads it).
What the UI does invisibly: when a user clicks "Download Template", the UI first clears any previous upload session, then creates a new one, then uploads the file - the user just sees a file download/upload dialog.
Step table
Step | Name in Collection | Method | Endpoint | Body / Notes | Output |
|---|---|---|---|---|---|
0 | Step 0: Apply Template | DELETE | {{edgeUrl}}/dm/template/v2 | No body. Clears any stale upload session. | 200 OK |
1 | Step 1: Apply Template | POST | {{edgeUrl}}/dm/template/v2 | {"size": <file_bytes>} | {"id": "<session_id>"} |
2 | Step 2: Apply Template | PUT | {{edgeUrl}}/dm/template/v2/{id}/resume | Binary file bytes in body | 200 OK, template applied |
Related: download a template
To export a template (before applying it elsewhere):
Name | Method | Endpoint | Notes |
|---|---|---|---|
Download Template | POST | {{edgeUrl}}/dm/template | Body: JSON with device IDs and flags to include/exclude components |