Apply Template to Machines
Apply the specified template to the specified machines. You MUST specifiy at least one template and one machine, and the template and all the machines must belong to the same organizaiton.
Verb | POST |
---|---|
Endpoint | {base-url}/templates/apply |
Max Page Size | N/A |
Request body
{
"requestFilter": {
"machineIdentifiers": ["3533", "PROSE0123456789"]
},
"routeFilter": {
"templateIds": [412]
}
}
Filters Honored
- TemplatingFilter
- templateIds
- RequestFilter
- machineIdentifiers
Returns
On Success
204 - No Content
On Error
HTTP Code | Error Code | Definition |
---|---|---|
422 | NO_SELECTIONS | One or more of the machines you attempted to apply a template to had no selections. |
422 | MULTIPLE_TEMPLATES | You specified more than one template when trying to apply a template to machines. |