Sending document metadata only using JSON

If a POST /documents or PATCH /documents call needs to specify document metadata only, it can be executed using a request body that is formatted as JSON. In this case, you do not need to use a FormData object. This applies to the POST /documents and PATCH /documents endpoints in both PolicyCenter and ContactManager.

For example, the following call updates only the metadata document for document pc:555 for account pc:102. In this case, the call can be sent with a request body formatted as JSON.

PATCH /account/v1/accounts/pc:102/documents/pc:555
            
{
    "data": {
        "attributes": {
            "status": {
                "code": "final"
            }
        }
    }
}