v1

latestOpenAPI 3.0.02026-07-24115101.2 MB
Contract

Create a template from a contract

Use this endpoint to create a template from an existing contract.

post/contracts/{contract_id}/copy_to_template

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

namestring
workspace_idinteger

The workspace to which the template needs to be created from contract.

Response

Returns the created template.

created_timestring datetime required
idinteger required
namestring required
sign_laterboolean

A flag to indicate if the template has postponed signing.

source_contract_idinteger
template_activeboolean
updated_timestring datetime nullable required