Skip to main content
PATCH
/
v1
/
admin
/
legal
/
contracts
/
attachments
/
{attachmentId}
/
upload
Replace a contract attachment file
curl --request PATCH \
  --url https://{operatorDomain}/v1/admin/legal/contracts/attachments/{attachmentId}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "contractId": "<string>",
    "mimeType": "<string>",
    "storageKey": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

attachmentId
string
required

Body

multipart/form-data
file
file

Response

200 - application/json

Updated attachment

data
object