/v1/document-requests/{id}/fulfilFulfil a document request
Closes one document request because the paper ARRIVED. Body: fileId, required — the file must already be pinned to the same record the ask was raised on, and another workspace's file cannot be named. Only an OPEN request can move, so fulfilling twice is a not-found. Answers the settled request. Upload the file first, then name it here; post_document-requests_id_cancel is for the ask that is simply dropped.
Access class: workspace.
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": {
"cancelledAt": "string",
"documentType": "string",
"dueAt": "string",
"fulfilledAt": "string",
"fulfilledBy": 1,
"fulfilledFileId": "",
"id": "",
"note": "string",
"periods": [
{
"label": "string",
"periodEnd": "string",
"periodStart": "string"
}
],
"requestedAt": "string",
"requestedBy": 1,
"rowId": "",
"sentAt": "string",
"sentMedium": "string",
"sentMessageId": 1,
"sentTo": "string",
"status": "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"
}