Contract - Files

Upload files

Use this endpoint to add multiple attachments or a single PDF document to a contract. See here for more information.

post/contracts/{contract_id}/files

Request

  • Base URL
    https://api.oneflow.com/v1
  • Auth
    none declared. Required headers: x-oneflow-api-token, x-oneflow-user-email

Path parameters

contract_idinteger required

The unique ID of the contract.

Headers

x-oneflow-api-tokenstring required

The API key of your Oneflow account.

x-oneflow-user-emailstring email required
Example:john.doe@oneflow.com

The email address of a registered Oneflow user.

Request body multipart/form-data

filestring[] required

Encoded file data, e.g., the list of files to be uploaded to the contract in binary or base64 format.

upload_as'attachment' | 'expanded_pdf' required

The file type of the file to be imported. There are only two types available: attachment and expanded_pdf.

Response

Returns the uploaded contract files.

countinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.