Save External Document Input

Input representation to save external document to salesforce.
JSON example
{
    "externalDocumentId" : "id",
    "isAsync" : "false", 
    "metadata": {
        "sections" : [
            {
                "guid": "guid1",
                "name": "test1",
                "isReadonly": false
            },
            {
                "guid": "guid2",
                "name": "test2",
                "isReadonly": false
            }
        ],
        "objectReferences" :[
            {
                "objectType": "clause",
                "objectId": "clauseid1",
                "usages": {
                    "sectionIds": [
                        "guid1",
                        "guid2"
                    ],
                    "usedInDocument": true
                }
            },
            {
                "objectType": "clause",
                "objectId": "clauseid2",
                "usages": {
                    "sectionIds": [
                        "guid1",
                        "guid2"
                    ],
                    "usedInDocument": false // points to if this object is used in document as well without sections
                }
            }
        ]
    }
}
Properties
Name Type Description Required or Optional Available Version
externalDocumentId String ID of an external document. Required 58.0
isAsync Boolean Is Async Required 58.0
metadata External Document Metadata Metadata Optional 58.0