/v1/definitions/{key}/rows/{rowId}/contract/documentsAdd a document to a deal's contract
Renders one document against a deal and stores it, pinned to the template version it was built from. kind names the document (or templateId a specific template), and terms supplies values the template asks for beyond the record's own cells — placeholders are filled from the row's cells keyed by slugged column label, plus the workspace name and the caller's email. A placeholder nothing filled is a 422 that NAMES the missing ones rather than issuing a paper with a hole in it; an unknown kind is a 400 and a stranger's template a 404.
Access class: def:read.
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Request body
application/jsonrequiredResponses
the action's answer
{
"data": {
"body": "string",
"bodyFormat": "string",
"id": "",
"kind": "string",
"renderedAt": "string",
"renderedBy": 1,
"rowId": "",
"substitutions": {},
"templateId": "",
"templateVersion": 1,
"title": "string"
}
}a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}