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

KeyDatatypeRequiredDescription
sourcestringThe source of the tags.
Complete list of source attribute values.

Request Body

{"host"=>"test.host", "tags"=>["environment:production", "environment:production"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"host":"test.host","tags":["environment:production","environment:production"]}