mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-22 09:34:54 +02:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[4948],{55151:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>g,default:()=>x,frontMatter:()=>y,metadata:()=>o,toc:()=>w});const o=JSON.parse('{"id":"API-docs/update-document","title":"Update Document","description":"The Update Document API allows users to modify and update the details of a specific document. Note that this API only allows to update a few parameters, you cannot change the file once it the document is created.","source":"@site/docs/API-docs/update-document.api.mdx","sourceDirName":"API-docs","slug":"/API-docs/update-document","permalink":"/docs/API-docs/update-document","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"update-document","title":"Update Document","description":"The Update Document API allows users to modify and update the details of a specific document. Note that this API only allows to update a few parameters, you cannot change the file once it the document is created.","sidebar_label":"Update Document","hide_title":true,"hide_table_of_contents":true,"api":"eJzdWF1u5LgRvkotXzIzkLvbM54N0k9xdgczRoyx4R8MEI/RoKRSi2uK5JJUtxsNAXnIDXKDHG1PEhQpqdU/9o6ziwTIi9GmisWqr4pVX3HNPJ87Nr1jP+qsrlB5x+4TlqPLrDBeaMWm7KZEuDU59widFJxengGXUi8d1A6tA6+h0rkoVsBVDnUU9yVCjp4L6UAXwMEZzEQhMshbRSP4rIMg9+BL4YJireSq0+51p4xDgUsw3PIKPVqXwErXkHGltIes5GoeDyyERNAqQxA+WtAZLRxkFrnHfMQSpg1aTi6e5WzK4iGdfyxhm4PY9G7NFK+QTVmnayZyljBB8BjuS7aL2dmP5PDW6cFHhZgHp1Js/SI9Fn+uhcWcTb2tMWHOrySd5kRlJLKE4aOROkc2Lbh0JJCVWHE2XTO/MkHSW6HmLGGFthX3m5WmuY/60fm/6HxFe7ZNvbR6IXKEFKUe4DtA3mNlJPfo4BX3IJE7D1rhQLZz4DVLWKaVJwina8aNkSILII9/cnTaet90nf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vQ+GdlhyTv8vaGJSxtH1+r8I7LLF/Swy9fRmPjW1KgQWFtzSRX85rPSTaqbOJIX25zo4fAjdof5NRBOLZJU/SC/pJPBzes15F3NU0vHz89uaPFtZOm2Nw3TfNvtvudpQ==","sidebar_class_name":"put api-method","info_path":"docs/API-docs/opensign-api-v-1","custom_edit_url":null},"sidebar":"apiSidebar","previous":{"title":"Get Document","permalink":"/docs/API-docs/getdocument"},"next":{"title":"Revoke Document","permalink":"/docs/API-docs/revokedocument"}}');var n=i(74848),a=i(28453),s=i(33617),d=i.n(s),r=i(17543),c=i.n(r),p=i(86013),u=i.n(p),l=i(63723),m=i.n(l),h=(i(18766),i(79329),i(9303));const y={id:"update-document",title:"Update Document",description:"The Update Document API allows users to modify and update the details of a specific document. Note that this API only allows to update a few parameters, you cannot change the file once it the document is created.",sidebar_label:"Update Document",hide_title:!0,hide_table_of_contents:!0,api:"eJzdWF1u5LgRvkotXzIzkLvbM54N0k9xdgczRoyx4R8MEI/RoKRSi2uK5JJUtxsNAXnIDXKDHG1PEhQpqdU/9o6ziwTIi9GmisWqr4pVX3HNPJ87Nr1jP+qsrlB5x+4TlqPLrDBeaMWm7KZEuDU59widFJxengGXUi8d1A6tA6+h0rkoVsBVDnUU9yVCjp4L6UAXwMEZzEQhMshbRSP4rIMg9+BL4YJireSq0+51p4xDgUsw3PIKPVqXwErXkHGltIes5GoeDyyERNAqQxA+WtAZLRxkFrnHfMQSpg1aTi6e5WzK4iGdfyxhm4PY9G7NFK+QTVmnayZyljBB8BjuS7aL2dmP5PDW6cFHhZgHp1Js/SI9Fn+uhcWcTb2tMWHOrySd5kRlJLKE4aOROkc2Lbh0JJCVWHE2XTO/MkHSW6HmLGGFthX3m5WmuY/60fm/6HxFe7ZNvbR6IXKEFKUe4DtA3mNlJPfo4BX3IJE7D1rhQLZz4DVLWKaVJwina8aNkSILII9/cnTaet90nf6EWUDcUki8QEdfI+C/7iCBwwNMU+bCjx5y1iRMaf9iNZfkIoLFhcBlyGc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aqbOJIX25zo4fAjdof5NRBOLZJU/SC/pJPBzes15F3NU0vHz89uaPFtZOm2Nw3TfNvtvudpQ==",sidebar_class_name:"put api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},g=void 0,f={},w=[];function b(e){const t={p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Update Document"}),"\n",(0,n.jsx)(d(),{method:"put",path:"/document/{document_id}",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"The Update Document API allows users to modify and update the details of a specific document. Note that this API only allows to update a few parameters, you cannot change the file once it the document is created."}),"\n",(0,n.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(c(),{parameters:[{name:"document_id",in:"path",description:"ID of the document that needs to be updated",required:!0,style:"simple",explode:!1,schema:{type:"string",format:"string"}}]}),"\n",(0,n.jsx)(u(),{title:"Body",body:{description:"Provide below parameter to update templates (at least one parameter required)",content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",format:"string",example:"sample document"},note:{type:"string",format:"string",example:"Please review and sign this document"},description:{type:"string",format:"string",example:"document description"},folderId:{type:"string",example:""},enableOTP:{type:"boolean",description:"true - this option will enable OTP verification. Users will receive a verification code via email, which they must enter to sign the document. false - this option will disable OTP verification, allowing users to sign the document directly without additional steps.",example:!1},enableTour:{type:"boolean",description:"true - this option will enable a guided tour for signers, providing instructions during the signing process. false - disable the guided tour, ensuring a faster, uninterrupted signing experience.",example:!1},allow_modifications:{type:"boolean",description:"true - Permits signers to add elements such as signatures, initials, stamps, or text on top of existing widgets in the document. false - Restricts signers from adding any additional elements to the document. This is the default value.",example:!1},redirect_url:{type:"string",description:"Specifies the URL where the signer will be redirected upon completing the document signing process.",example:""},auto_reminder:{type:"boolean",description:"Set to true to enable automatic reminders. Set to false to disable them (default behavior).",example:!1},remind_once_in_every:{type:"number",description:"Number of days between reminders. This is only applicable when auto_reminder is set to true.",example:5}},title:"document_document_id_body"}}}}}),"\n",(0,n.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"Document updated successfully!",content:{"application/json":{schema:{type:"object",properties:{objectId:{type:"string",example:"asd2HsP4Hp"},updatedAt:{type:"string",example:"2023-10-07T16:49:56.000Z",xml:{name:"date"},title:"date"}},title:"inline_response_200_3"}}}},400:{description:"Please provide valid field names!",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string",format:"string",example:"Please provide valid field names!"}},title:"inline_response_400"}}}},404:{description:"Document not found!",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string",format:"string",example:"Document not found!"}},title:"inline_response_404_4"}}}},405:{description:"Invalid API Token!",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string",example:"Invalid API token!"}},xml:{name:"invalidtoken"},title:"invalidtoken"}}}}}})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(b,{...e})}):b(e)}}}]); |