Authorization: Bearer ********************x-api-key: ********************{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"comment": "my comment"
}
}curl --location --request POST '/v2/targets' \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"comment": "my comment"
}
}'