Skip to main content
When updating trusted_metadata and untrusted_metadata objects, update payloads will be merged with the existing objects at the top level only.

Adding a new field

To add a new field, pass a key-value pair. Note that this will be merged with the existing object. To add a new field, pass a key-value pair. Note that this will be merged with the existing object.
Initial
Update
Result

Replacing an existing field

Pass a new value to an existing top-level key to replace field’s value.
Initial
Update
Result

Updating a deeply nested field

Stytch will not merge deeply nested objects or arrays. To add a field to a deeply nested object, or update an array, replace the entire top-level key.
Initial
Update
Result

Deleting a field

Pass a value of null to a top-level key to delete an existing field.
Initial
Update
Result

Deleting all fields

Pass a value of null to every top-level key to delete all fields.
Initial
Update
Result