Update label

PATCH {{baseUrl}}/endpoint/labels/:id?aid=1234

Updates a label using its ID.

Request Params

KeyDatatypeRequiredDescription
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.

Request Body

{"name"=>"Head office meeting rooms", "color"=>"#ff3333", "matchType"=>"and", "filters"=>[{"key"=>"vpn-client-network", "values"=>["10.1.1.0/24", "192.168.1.0/24"], "mode"=>"not-in"}, {"key"=>"vpn-client-network", "values"=>["10.1.1.0/24", "192.168.1.0/24"], "mode"=>"in"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"abc-123-def","name":"Head office meeting rooms","color":"#ff3333","matchType":"and","filters":[{"key":"vpn-client-network","values":["10.1.1.0/24","192.168.1.0/24"],"mode":"in"},{"key":"vpn-client-network","values":["10.1.1.0/24","192.168.1.0/24"],"mode":"in"}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"non aliqua consequat","deprecation":"eiusmod nulla","name":"minim ut adipisicing ea","profile":"proident laboris do","title":"mollit est ex dolor minim","hreflang":"deserunt sit amet anim"}}}