POST
call to the /post_users
endpoint to create the user and set the property values:
PATCH
call to the Management API /patch_users_by_id
endpoint.
Assuming you created a user with the following metadata values:
user_metadata
and add the user’s home address as a second-level property:
PATCH
call:
PATCH
call in which you have set a property’s value to null
(for example, {user_metadata: {color: null}}
), Auth0 deletes the property/value from the database. Also, patching the metadata itself with an empty object removes the metadata completely.addresses
property. Since the addresses
object is a root-level property, it will be merged into the final JSON object representing the user, but its sub-properties will not.
PATCH
call to the API would be:
user_metadata
:
app_metadata
:
clientMetadata
object can be included when creating a new application via the POST /api/v2/
applications endpoint.
GET /api/v2/clients
and GET /api/v2/client/{id}
endpoints.
PATCH /api/v2/clients/{id}
endpoint, supplying an application object with the clientMetadata property
, which has a value that consists of an object containing the metadata you’d like to change.
Application before:
PATCH /api/v2/client/myclientid123
with body:
null
for the key value. This behavior matches that of the user_metadata
and app_metadata
properties in the PATCH
/api/v2/users/ endpoint.