Skip to main content
POST
/
v1
/
admin
/
legal
/
contracts
/
{id}
/
attachments
/
upload
Upload a contract attachment
curl --request POST \
  --url https://{operatorDomain}/v1/admin/legal/contracts/{id}/attachments/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'name=<string>'
{
  "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

id
string
required

Body

multipart/form-data
file
file
name
string

Response

201 - application/json

Uploaded attachment

data
object