Spaces method and path for this operation:
post /s/{space_id}/api/entity_analytics/watchlists/{watchlist_id}/entities/assign
Refer to Spaces for more information.
Assigns the provided entities to the specified watchlist using a "manual" source label. The entities must already exist in the entity store.
If an entity is already on the watchlist, no new document is created — the "manual" label is added to its existing source labels instead.
POST
/api/entity_analytics/watchlists/{watchlist_id}/entities/assign
curl \
--request POST 'https://<KIBANA_URL>/api/entity_analytics/watchlists/high-risk-vendors/entities/assign' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"euids":["user:john.doe","host:web-01"]}'
Request example
{
"euids": [
"user:john.doe",
"host:web-01"
]
}
Response examples (200)
{
"failed": 0,
"items": [
{
"euid": "user:john.doe",
"status": "success"
},
{
"euid": "host:web-01",
"status": "not_found"
}
],
"not_found": 1,
"successful": 1,
"total": 2
}