Add tags to a host
POST {{baseUrl}}/api/v1/tags/hosts/:host_name
This endpoint allows you to add new tags to a host, optionally specifying where these tags come from.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
source | string | The source of the tags. | |
Complete list of source attribute values. |
Request Body
{"host"=>"test.host", "tags"=>["environment:production", "environment:production"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"host":"test.host","tags":["environment:production","environment:production"]}