/components/exceltemplate v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Components
postComponentsExcelTemplate
Code samples
const headers = {
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
};
fetch("https://goldleaf.app/api/v1/components/exceltemplate", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /components/exceltemplate
Download Excel template
Downloads an Excel template file for importing data
Example responses
200 Response
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful import — Excel file returned | string |
| 500 | Internal Server Error | Server error | string |
