Class UpdateUserProfileDataRequest
- All Implemented Interfaces:
JsonpSerializable
Update specific data for the user profile that is associated with a unique ID.
NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice.
To use this API, you must have one of the following privileges:
- The
manage_user_profilecluster privilege. - The
update_profile_dataglobal privilege for the namespaces that are referenced in the request.
This API updates the labels and data fields of an
existing user profile document with JSON objects. New keys and their values
are added to the profile document and conflicting keys are replaced by data
that's included in the request.
For both labels and data, content is namespaced by the top-level fields. The
update_profile_data global privilege grants privileges for
updating only the allowed namespaces.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateUserProfileDataRequest>Json deserializer forUpdateUserProfileDataRequestEndpoint "security.update_user_profile_data". -
Method Summary
Modifier and TypeMethodDescriptiondata()Non-searchable data that you want to associate with the user profile.final LongOnly perform the operation if the document has this primary term.final LongifSeqNo()Only perform the operation if the document has this sequence number.labels()Searchable data that you want to associate with the user profile.static UpdateUserProfileDataRequestfinal Refreshrefresh()If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupUpdateUserProfileDataRequestDeserializer(ObjectDeserializer<UpdateUserProfileDataRequest.Builder> op) final Stringuid()Required - A unique identifier for the user profile.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateUserProfileDataRequest -
_ENDPOINT
public static final Endpoint<UpdateUserProfileDataRequest,UpdateUserProfileDataResponse, _ENDPOINTErrorResponse> Endpoint "security.update_user_profile_data".
-
-
Method Details
-
of
-
data
Non-searchable data that you want to associate with the user profile. This field supports a nested data structure. Within thedataobject, top-level keys cannot begin with an underscore (_) or contain a period (.). The data object is not searchable, but can be retrieved with the get user profile API.API name:
data -
ifPrimaryTerm
Only perform the operation if the document has this primary term.API name:
if_primary_term -
ifSeqNo
Only perform the operation if the document has this sequence number.API name:
if_seq_no -
labels
Searchable data that you want to associate with the user profile. This field supports a nested data structure. Within the labels object, top-level keys cannot begin with an underscore (_) or contain a period (.).API name:
labels -
refresh
If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. If 'wait_for', it waits for a refresh to make this operation visible to search. If 'false', nothing is done with refreshes.API name:
refresh -
uid
Required - A unique identifier for the user profile.API name:
uid -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateUserProfileDataRequestDeserializer
protected static void setupUpdateUserProfileDataRequestDeserializer(ObjectDeserializer<UpdateUserProfileDataRequest.Builder> op)
-