post
/public_api/v1/featured_fields/replace_hosts
Replace the featured hosts listed in your environment.
Note: Running this API will delete all existing host names.
Required license: Cortex XDR Pro per Endpoint or Cortex XDR Pro per GB
CURL
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://api-yourfqdn/public_api/v1/featured_fields/replace_hosts" \
-d '{
"request_data" : {
"fields" : [ {
"comment" : "comment",
"value" : "value"
}, {
"comment" : "comment",
"value" : "value"
} ]
}
}'
Request
Body
optional
Example:
{"request_data":{"fields":[{"value":"ADMIN-PC","comment":"ADMIN-PC is a featured host"},{"value":"CEO-PC"}]}}
request_data
required
fields
optional
Array
An array of host names and comments.
value
required
String
Defines the host name. Maximum length is 256 characters.
comment
optional
String
Represents additional information regarding the featured alert field.
Responses