mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-29 04:54:56 +02:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[7894],{79523:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>f,contentTitle:()=>u,default:()=>v,frontMatter:()=>x,metadata:()=>j,toc:()=>b});var l=s(85893),t=s(11151),i=s(58219),n=(s(62316),s(51039)),r=s.n(n),d=(s(82723),s(9487)),m=s(41429),o=s(5397),p=s(4667),c=s(9472),h=s(85162);const x={id:"delete-template",title:"Delete Template",description:"The Delete Template API provides you with the ability to remove a specific template from the templates. If a template is no longer needed",sidebar_label:"Delete Template",hide_title:!0,hide_table_of_contents:!0,api:"eJzNVttu20YQ/ZXJvjQBaEl2nBQliqJubaRGjCaoXQSoIxgrckhuvNzd7A51gcC3fkk/rV9SzJKUJcs2GqAI+iKRy7mduZzZtSBZBpFeiyusnZaEQUwTkWPIvHKkrBGpuKoQTlEjIQxScPL+HJy3c5VjgJVtYKGoAqoQ5ExpRSsgCx5rO0eQEBxmqlAZ0KBfeFtH8eEkjOC8AHknoQIYC9qaEj0YxBxzkQjr0EuO6zwXqchjVENQIhFOelkjoWdMa2FkjSIVg80bxSYUY3KSKnEf6Pkp2GInKqBKUvQeGNAMoXPJdjx+bpTHXKTkG0xEoJVmb0HVTnMwuHTa5ijSQurAAlmFtRTpWtDKRUnyypQiEYX1taS7k7adsv3grAkYWONoMuG/e4UZouyDgtBkGYZQNFqvnolEZNYQGmJN6ZxWWUzd+FNg9fV+QHb2CTPiPHpONKnOeXfMGd8PHZcywk3FT8vqSAb3i3sp2qQvTX5CTysdTY5eHhxODibfXh2+To+/S1+9Hk0mkz9EIpa1Zt2+hjkXuE0EKdJ37+2eWHS7I9iftCx8/FAaL22NVClTwgINwcJbUybgNMqAQH4FspTKAGfa/4dZRe+tfzo7XxZZu4VaGa0M3gw9dHM8mdwcbpJw/EQv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",sidebar_class_name:"delete api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},u=void 0,j={id:"API-docs/delete-template",title:"Delete Template",description:"The Delete Template API provides you with the ability to remove a specific template from the templates. If a template is no longer needed",source:"@site/docs/API-docs/delete-template.api.mdx",sourceDirName:"API-docs",slug:"/API-docs/delete-template",permalink:"/docs/API-docs/delete-template",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"delete-template",title:"Delete Template",description:"The Delete Template API provides you with the ability to remove a specific template from the templates. If a template is no longer needed",sidebar_label:"Delete Template",hide_title:!0,hide_table_of_contents:!0,api:"eJzNVttu20YQ/ZXJvjQBaEl2nBQliqJubaRGjCaoXQSoIxgrckhuvNzd7A51gcC3fkk/rV9SzJKUJcs2GqAI+iKRy7mduZzZtSBZBpFeiyusnZaEQUwTkWPIvHKkrBGpuKoQTlEjIQxScPL+HJy3c5VjgJVtYKGoAqoQ5ExpRSsgCx5rO0eQEBxmqlAZ0KBfeFtH8eEkjOC8AHknoQIYC9qaEj0YxBxzkQjr0EuO6zwXqchjVENQIhFOelkjoWdMa2FkjSIVg80bxSYUY3KSKnEf6Pkp2GInKqBKUvQeGNAMoXPJdjx+bpTHXKTkG0xEoJVmb0HVTnMwuHTa5ijSQurAAlmFtRTpWtDKRUnyypQiEYX1taS7k7adsv3grAkYWONoMuG/e4UZouyDgtBkGYZQNFqvnolEZNYQGmJN6ZxWWUzd+FNg9fV+QHb2CTPiPHpONKnOeXfMGd8PHZcywk3FT8vqSAb3i3sp2qQvTX5CTysdTY5eHhxODibfXh2+To+/S1+9Hk0mkz9EIpa1Zt2+hjkXuE0EKdJ37+2eWHS7I9iftCx8/FAaL22NVClTwgINwcJbUybgNMqAQH4FspTKAGfa/4dZRe+tfzo7XxZZu4VaGa0M3gw9dHM8mdwcbpJw/EQvGUtQ2MbkXxfqQ/6fBnR883oD6NU+oHMzl1rlkamu7C2ar4tn2z117ve7VXVC8bvYAbt93oEMmDVe0SoS2/JAOnXQfU+vp0wX3Cn2jhQjGVIlUjEeyGy83iLCVrBJPx+osvFapKIiciEdj6VzI+vQBFUaLWdhlNl6LJ0azw9Fm9yXDiRLZcqDL9SSJp/Z5eMa0zvQl1yYLvc70DcVkE69xZVIhsxuS/WUX6HM0ccqKFPYqNzn+51Dc6lKE6s1P9xbDB9QZ7ZGXgG8HQbxv//8K2rkNmtqNBSb6Rm8azw4u0BfNBqkyaHQuFQz3W1NqbVddDuTLASUtcYQ9AqUISx9pHNVKpIaOCs8/Jl03VZVGFjMsraHrQ4OI/hQIVXo+dM3npdujnPU3LWgrb1lO2RBNmTr6KOPGRbW3xYcUgISZk1QBkOAgDiooKmkyRCGWiRgPUgDaAi98yogSFWzcGE9YFGoTLFhnjUvM4JaGlkiO0uA4965O3g7awJBsLqJQNhjjUgdxLh5R3Cq5tgB58McSSqNOZQNm0ggszlCP3oMw+Qww0Dg2L3KMBoNJD2Bxjn62K2xkrwpwVnmBCU1b//t2rIh8tIE3s9dQENpNulz3vLKjT5yuRrBR/PRMG9DE5AbQCtzG9KP5gCuN232AWdBEU6fD7OwWCz25uDFrs4bRVUzA4/O3umV8TBOzbb65uWFSAShr8O74hL9XGXYD+AjPsdReNwzpcwiU2Itle5m7Mf7CsxaWmVoAm7x2smb9xcwh5ejiUi2pv5fBDy+OP/57NfLM7bL3NTN3+FoMprwkbOBamm2XN27mN4f3fUd5f+v7rE9bREuaey0VJH+Y6bWPW9fb66tIhHp9hV2mojKBmKR9XomA/7uddvy8ecGPS+IaSLm0is5Y3a7XotcBX7ON1fRR3P0/Lf+VvsCvuw2/CCggZwNM/Nc6obfRCJucXXvWt5O22RgaI64kzjJMnS0pbu3tHc23+nZxdnVmUiEbDiD28vhNi6H/oEdPBja7tboYuBfXl4PKnzP/fMWVz9sxLsvjyr0EAdpTtO0bdt/AIaut2k=",sidebar_class_name:"delete api-method",info_path:"docs/API-docs/opensign-api-v-1",custom_edit_url:null},sidebar:"apiSidebar",previous:{title:"Update Template",permalink:"/docs/API-docs/update-template"},next:{title:"Get Template list",permalink:"/docs/API-docs/gettemplatelist"}},f={},b=[{value:"Request",id:"request",level:2}];function g(e){const a={h2:"h2",p:"p",...(0,t.a)(),...e.components},{Details:s}=a;return s||function(e,a){throw new Error("Expected "+(a?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:"openapi__heading",children:(0,l.jsx)(a.p,{children:"Delete Template"})}),"\n",(0,l.jsx)(r(),{method:"delete",path:"/template/{template_id}"}),"\n",(0,l.jsx)(a.p,{children:"The Delete Template API provides you with the ability to remove a specific template from the templates. If a template is no longer needed"}),"\n",(0,l.jsx)(a.h2,{id:"request",children:"Request"}),"\n",(0,l.jsxs)(s,{style:{marginBottom:"1rem"},className:"openapi-markdown__details","data-collapsed":!1,open:!0,children:[(0,l.jsx)("summary",{style:{},children:(0,l.jsx)("h3",{className:"openapi-markdown__details-summary-header-params",children:(0,l.jsx)(a.p,{children:"Path Parameters"})})}),(0,l.jsx)("div",{children:(0,l.jsx)("ul",{children:(0,l.jsx)(m.Z,{className:"paramsItem",param:{name:"template_id",in:"path",description:"ID of the template that needs to be deleted",required:!0,style:"simple",explode:!1,schema:{type:"string",format:"string"}}})})})]}),"\n",(0,l.jsx)("div",{children:(0,l.jsx)("div",{children:(0,l.jsxs)(i.Z,{children:[(0,l.jsxs)(h.default,{label:"200",value:"200",children:[(0,l.jsx)("div",{children:(0,l.jsx)(a.p,{children:"Template deleted successfully!"})}),(0,l.jsx)("div",{children:(0,l.jsx)(d.Z,{className:"openapi-tabs__mime",schemaType:"response",children:(0,l.jsx)(h.default,{label:"application/json",value:"application/json",children:(0,l.jsxs)(c.default,{className:"openapi-tabs__schema",children:[(0,l.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,l.jsxs)(s,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,l.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,l.jsx)("strong",{children:(0,l.jsx)(a.p,{children:"Schema"})})}),(0,l.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,l.jsxs)("ul",{style:{marginLeft:"1rem"},children:[(0,l.jsx)(p.Z,{collapsible:!1,name:"objectId",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Bxh2aspHp3"}}),(0,l.jsx)(p.Z,{collapsible:!1,name:"deletedAt",required:!1,schemaName:"date",qualifierMessage:void 0,schema:{type:"string",example:"2023-10-07T16:49:56.000Z",xml:{name:"date"},title:"date"}})]})]})}),(0,l.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,l.jsx)(o.Z,{responseExample:'{\n "objectId": "Bxh2aspHp3",\n "deletedAt": "2023-10-07T16:49:56.000Z"\n}',language:"json"})})]})})})})]}),(0,l.jsxs)(h.default,{label:"400",value:"400",children:[(0,l.jsx)("div",{children:(0,l.jsx)(a.p,{children:"Something went wrong, please try again later!"})}),(0,l.jsx)("div",{children:(0,l.jsx)(d.Z,{className:"openapi-tabs__mime",schemaType:"response",children:(0,l.jsx)(h.default,{label:"application/json",value:"application/json",children:(0,l.jsxs)(c.default,{className:"openapi-tabs__schema",children:[(0,l.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,l.jsxs)(s,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,l.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,l.jsx)("strong",{children:(0,l.jsx)(a.p,{children:"Schema"})})}),(0,l.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,l.jsx)("ul",{style:{marginLeft:"1rem"},children:(0,l.jsx)(p.Z,{collapsible:!1,name:"error",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Something went wrong, please try again later!"}})})]})}),(0,l.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,l.jsx)(o.Z,{responseExample:'{\n "error": "Something went wrong, please try again later!"\n}',language:"json"})})]})})})})]}),(0,l.jsxs)(h.default,{label:"404",value:"404",children:[(0,l.jsx)("div",{children:(0,l.jsx)(a.p,{children:"Template not found!"})}),(0,l.jsx)("div",{children:(0,l.jsx)(d.Z,{className:"openapi-tabs__mime",schemaType:"response",children:(0,l.jsx)(h.default,{label:"application/json",value:"application/json",children:(0,l.jsxs)(c.default,{className:"openapi-tabs__schema",children:[(0,l.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,l.jsxs)(s,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,l.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,l.jsx)("strong",{children:(0,l.jsx)(a.p,{children:"Schema"})})}),(0,l.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,l.jsx)("ul",{style:{marginLeft:"1rem"},children:(0,l.jsx)(p.Z,{collapsible:!1,name:"error",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Template not found!"}})})]})}),(0,l.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,l.jsx)(o.Z,{responseExample:'{\n "error": "Template not found!"\n}',language:"json"})})]})})})})]}),(0,l.jsxs)(h.default,{label:"405",value:"405",children:[(0,l.jsx)("div",{children:(0,l.jsx)(a.p,{children:"Invalid API Token!"})}),(0,l.jsx)("div",{children:(0,l.jsx)(d.Z,{className:"openapi-tabs__mime",schemaType:"response",children:(0,l.jsx)(h.default,{label:"application/json",value:"application/json",children:(0,l.jsxs)(c.default,{className:"openapi-tabs__schema",children:[(0,l.jsx)(h.default,{label:"Schema",value:"Schema",children:(0,l.jsxs)(s,{style:{},className:"openapi-markdown__details response","data-collapsed":!1,open:!0,children:[(0,l.jsx)("summary",{style:{},className:"openapi-markdown__details-summary-response",children:(0,l.jsx)("strong",{children:(0,l.jsx)(a.p,{children:"Schema"})})}),(0,l.jsx)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,l.jsx)("ul",{style:{marginLeft:"1rem"},children:(0,l.jsx)(p.Z,{collapsible:!1,name:"error",required:!1,schemaName:"string",qualifierMessage:void 0,schema:{type:"string",example:"Invalid API token!"}})})]})}),(0,l.jsx)(h.default,{label:"Example (from schema)",value:"Example (from schema)",children:(0,l.jsx)(o.Z,{responseExample:'{\n "error": "Invalid API token!"\n}',language:"json"})})]})})})})]})]})})})]})}function v(e={}){const{wrapper:a}={...(0,t.a)(),...e.components};return a?(0,l.jsx)(a,{...e,children:(0,l.jsx)(g,{...e})}):g(e)}}}]); |