Spaces method and path for this operation:
Refer to Spaces for more information.
Update multiple entity records in the Entity Store in a single request.
[Required authorization] Route required privileges: securitySolution.
Query parameters
-
When true, allows updating protected fields.
Values are
trueorfalse. Default value isfalse.
Body
-
The entities to update.
Hide entities attributes Show entities attributes object
doc
object Required Any of: Hide attributes Show attributes
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Additional properties are NOT allowed.
Hide asset attributes Show asset attributes object
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide lifecycle attributes Show lifecycle attributes object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide accesses_frequently attributes Show accesses_frequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide accesses_infrequently attributes Show accesses_infrequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide administers attributes Show administers attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide communicates_with attributes Show communicates_with attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide depends_on attributes Show depends_on attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns attributes Show owns attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns_inferred attributes Show owns_inferred attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide resolution attributes Show resolution attributes object
-
Additional properties are NOT allowed.
Hide supervises attributes Show supervises attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide event attribute Show event attribute object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are allowed.
-
Additional properties are NOT allowed.
Hide user attributes Show user attributes object
-
Additional properties are NOT allowed.
Hide attributes Show attributes
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Additional properties are NOT allowed.
Hide asset attributes Show asset attributes object
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide lifecycle attributes Show lifecycle attributes object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide accesses_frequently attributes Show accesses_frequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide accesses_infrequently attributes Show accesses_infrequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide administers attributes Show administers attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide communicates_with attributes Show communicates_with attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide depends_on attributes Show depends_on attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns attributes Show owns attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns_inferred attributes Show owns_inferred attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide resolution attributes Show resolution attributes object
-
Additional properties are NOT allowed.
Hide supervises attributes Show supervises attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide event attribute Show event attribute object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are NOT allowed.
Hide host attributes Show host attributes object
-
Additional properties are allowed.
Hide attributes Show attributes
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Additional properties are NOT allowed.
Hide asset attributes Show asset attributes object
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide lifecycle attributes Show lifecycle attributes object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide accesses_frequently attributes Show accesses_frequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide accesses_infrequently attributes Show accesses_infrequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide administers attributes Show administers attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide communicates_with attributes Show communicates_with attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide depends_on attributes Show depends_on attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns attributes Show owns attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns_inferred attributes Show owns_inferred attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide resolution attributes Show resolution attributes object
-
Additional properties are NOT allowed.
Hide supervises attributes Show supervises attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide event attribute Show event attribute object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are allowed.
-
Additional properties are NOT allowed.
Hide service attributes Show service attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide attributes Show attributes
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Additional properties are NOT allowed.
Hide asset attributes Show asset attributes object
-
Additional properties are NOT allowed.
Hide cloud attributes Show cloud attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide entity attributes Show entity attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide lifecycle attributes Show lifecycle attributes object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$. -
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are NOT allowed.
Hide relationships attributes Show relationships attributes object
-
Additional properties are NOT allowed.
Hide accesses_frequently attributes Show accesses_frequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide accesses_infrequently attributes Show accesses_infrequently attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide administers attributes Show administers attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide communicates_with attributes Show communicates_with attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide depends_on attributes Show depends_on attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns attributes Show owns attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide owns_inferred attributes Show owns_inferred attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide resolution attributes Show resolution attributes object
-
Additional properties are NOT allowed.
Hide supervises attributes Show supervises attributes object
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
-
-
Additional properties are NOT allowed.
Hide event attribute Show event attribute object
-
Format should match the following pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$.
-
-
Additional properties are allowed.
-
Additional properties are NOT allowed.
Hide orchestrator attributes Show orchestrator attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
-
The entity type of this record.
Values are
user,host,service, orgeneric.
curl -X PUT -H "kbn-xsrf: true" -H "Authorization: ApiKey ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"entities":[{"type":"host","doc":{"entity":{"id":"host:web-server-prod-01","name":"web-server-prod-01","type":"host","attributes":{"asset":true}},"host":{"name":"web-server-prod-01"}}}]}' \
"${KIBANA_URL}/api/security/entity_store/entities/bulk?force=true"
PUT kbn://api/security/entity_store/entities/bulk?force=true
{
"entities": [
{
"type": "host",
"doc": {
"entity": {
"id": "host:web-server-prod-01",
"name": "web-server-prod-01",
"type": "host",
"attributes": { "asset": true }
},
"host": { "name": "web-server-prod-01" }
}
}
]
}
{
"entities": [
{
"doc": {
"entity": {
"attributes": {
"asset": true
},
"id": "host:web-server-prod-01",
"name": "web-server-prod-01",
"type": "host"
},
"host": {
"name": "web-server-prod-01"
}
},
"type": "host"
},
{
"doc": {
"entity": {
"attributes": {
"managed": true
},
"id": "user:jane.doe@example.com",
"name": "jane.doe",
"type": "user"
},
"user": {
"name": "jane.doe"
}
},
"type": "user"
}
]
}
{
"errors": [
{
"_id": "5de9f93a68a72532e736bf5a6184b06300b9cabf",
"reason": "[5de9f93a68a72532e736bf5a6184b06300b9cabf]: document missing",
"status": 404,
"type": "document_missing_exception"
}
],
"ok": true
}
{
"errors": [],
"ok": true
}
{
"error": "Bad Request",
"message": "Bad request: The following attributes are not allowed to be updated without forcing it (?force=true): entity.name, entity.type",
"statusCode": 400
}