Update workflow document ======================== +--------+--------------------------------------------------------------------------------+ | Method | Path | +========+================================================================================+ | POST | /api/v1/workspaces/{workspaceId}/workflows/{workflowId}/documents/{documentId} | +--------+--------------------------------------------------------------------------------+ Parameters ---------- * ``document`` binary | required The new document for your workflow. It must be a pdf file with a max size of 20M. * ``emptyFields`` boolean A boolean to delete the current fields that have already in placed in the document (if there are any). .. note:: You cannot update a document if it has fields placed on it. If you want to keep the fields, you need to store them somewhere, and add them after updating the document. Example """"""" .. code-block:: bash curl --request POST 'https://app.yumisign.com/api/v1/workspaces/1/workflows/1/documents/3' \ --form 'document=@"/path/to/my/document2.pdf"' --form 'emptyFields="1"' .. code-block:: json { "id": 3, "file": { "file": "https://app.yumisign.com/api/v1/storage/temp/1/doc/62d56ec39863d4fba625f930d647605c", "thumb": "https://app.yumisign.com/api/v1/storage/temp/1/doc/62d56ec3bdcb05b65ba95bd03312aac7", "format": "pdf", "size": 106708, "name": "1.pdf" }, "position": 1 }