post
/public_api/v1/assets/assets_internet_exposure/annotation/
Adds an annotation (also called a note) to an asset or IP range. If an asset or IP range has an existing annotation, you can append a new annotation to the existing annotation or replace the existing annotation with a new one.
Required License: Cortex Xpanse Expander
Request headers
authorization
String
required
api-key
Example:
{{api_key}}
x-xdr-auth-id
String
required
api-key-id
Example:
{{api_key_id}}
Body parameters
required
Free-Form objectFree-Form object
request_dataObject
A dictionary containing the API request fields.
assetsArray
List of dictionaries that refer to assets.
[Free-Form object]
entity_idString
entity_typeString (Enum)
Values are asset
or ip_range
.
Allowed values:"asset""ip_range"
annotationString
Annotation text.
should_appendBoolean
True
append the annotation to the existing annotation.
False
replaces the existing annotation.
The default is true
.
REQUEST BODY
{
"request_data": {
"assets": [
{
"annotation": "annotation",
"entity_type": "asset",
"entity_id": "entity_id"
},
{
"annotation": "annotation",
"entity_type": "asset",
"entity_id": "entity_id"
}
],
"should_append": true
}
}
CURL
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
-H
'authorization: {{api_key}}'
-H
'x-xdr-auth-id: {{api_key_id}}'
'https://api-}/public_api/v1/assets/assets_internet_exposure/annotation/'
-d
'{
"request_data" : {
"assets" : [ {
"annotation" : "annotation",
"entity_type" : "asset",
"entity_id" : "entity_id"
}, {
"annotation" : "annotation",
"entity_type" : "asset",
"entity_id" : "entity_id"
} ],
"should_append" : true
}
}'
Responses