Assign Machines to Template Groups
Assign one or more machines to a template group. Note, you MUST supply one and ONLY one template group id.
| Verb | POST |
|---|---|
| Endpoint | {base-url}/template-groups/assign/machines |
| Max Page Size | N/A |
Request body
{
"requestFilter": {
"machineIdentifiers": ["5590"]
},
"routeFilter": {
"templateGroupIds": [7]
}
}
Filters Honored
- RequestFilter
- machineIdentifiers
- TemplatingFilter
- templateGroupIds
Note
All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.
Returns
On Success
Response body
// 204 - No Content
On Error
| HTTP Code | Error Code | Definition |
|---|---|---|
| 403 | DATA_ACCESS_VIOLATION | One or more of the specified machines or template groups belong to an organization you do not have access to. |
| 403 | DATA_ACCESS_VIOLATION | The specified machines and template group belong to different organizations. |
| 404 | MISSING_RECORD | One or more of the specified machines or template groups does not exist. |