v1

latestOpenAPI 3.0.02026-07-24115101.2 MB
Contract

Move a contract by ID

Use this endpoint to move contract between workspaces and folders.

post/contracts/{contract_id}/move

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

The email address of a registered Oneflow user.

Request body

workspace_idinteger required

The workspace that the contract needs to move.

folder_idinteger

The folder id that the contract needs to move.

Example request

{
  "workspace_id": 380002,
  "folder_id": 190002
}

Response

Returns the contract.

idinteger required
importedboolean nullable

A flag denoting whether the contract has been imported or not.

marked_as_signedboolean nullable

A flag denoting whether the contract has been marked as signed or not.

published_timestring datetime nullable required
sign_laterboolean

A flag to indicate if the contract signing is postponed.

signing_period_expiry_timestring datetime nullable required
state'draft' | 'pending' | 'overdue' | 'signed' | 'declined' | 'unknown' required

One of the contract states.

state_updated_timestring datetime required
updated_timestring datetime nullable required