Skip to content

Upload file version

Request

Upload a new version of a file resource (File, ContractDocument)

Path
fileIdinteger, (int32)required

The system identifier for the file

Example:9456
Bodymultipart/form-data
filestring, (binary)required

Request header

Content-Type: multipart/form-data; boundary=----Boundary7MA4YWxkTrZu0gW

------Boundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="new-file-version.pdf"
Content-Type: application/pdf

<Binary file contents>
------Boundary7MA4YWxkTrZu0gW--

Responses

Created

Headers
Locationstring

Relative location to retrieve the new version of the file

Bodyapplication/json
idinteger, (int32)read-only

The system identifier for the file

Example:9456
Response
{ "id": 9456 }