Update user profile data Added in 8.2.0
Update specific data for the user profile that is associated with a unique ID.
Path parameters
-
A unique identifier for the user profile.
Query parameters
-
if_seq_no number
Only perform the operation if the document has this sequence number.
-
if_primary_term number
Only perform the operation if the document has this primary term.
-
refresh string
If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search, if 'wait_for' then wait for a refresh to make this operation visible to search, if 'false' do nothing with refreshes.
Values are
true
,false
, orwait_for
.
POST /_security/profile/{uid}/_data
curl \
-X POST http://api.example.com/_security/profile/{uid}/_data \
-H "Content-Type: application/json" \
-d '{"labels":{"additionalProperty1":{},"additionalProperty2":{}},"data":{"additionalProperty1":{},"additionalProperty2":{}}}'
Request examples
{
"labels": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"data": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
Response examples (200)
{
"acknowledged": true
}