Create partial document

This request allows you to partially update a document corresponding to a given data entity.

You can use this request to create documents for any given data entity. Because of this, you are not restricted to using the fields exemplified below in your requests. But you should be aware of the fields allowed or required for each document you wish to update.

Example use cases

Client profile

In order to create a customer profile's phone and isNewsletterOptIn fields, choose the CL data entity and send a request similar to this:

PATCH

https://examplestore.vtexcommercestable.com.br/api/dataentities/Client/documents

Request body

{
    "phone": "+12025550195",
    "isNewsletterOptIn": false
 }

Client address

In order to update the receiverName of an existing address, the data entity is AD and the request would look like this:

PATCH

https://examplestore.vtexcommercestable.com.br/api/dataentities/Address/documents

Request body

{
    "receiverName": "Lois Lane"
}
Language
Authentication
URL
Click Try It! to start a request and see the response here!