PUT /api/hosts/bulk/add_host_collections { "included": { "ids": [ 980191251, 980191252 ] }, "organization_id": 114267492, "host_collection_ids": [ 992660475, 1031461452 ], "hosts_bulk_action": { "included": { "ids": [ 980191251, 980191252 ] }, "organization_id": 114267492, "host_collection_ids": [ 992660475, 1031461452 ] } } 200 { "displayMessages": [ "Successfully added 1 content host(s) to host collection Simple Host Collection.", "Successfully added 2 content host(s) to host collection Another Simple Host Collection." ] }
Param name | Description |
---|---|
organization_id required |
ID of the organization Validations:
|
included required |
Validations:
|
included[search] optional , nil allowed |
Search string for hosts to perform an action on Validations:
|
included[ids] optional , nil allowed |
List of host ids to perform an action on Validations:
|
excluded required |
Validations:
|
excluded[ids] optional , nil allowed |
List of host ids to exclude and not run an action on Validations:
|
host_collection_ids required |
List of host collection ids Validations:
|