/components/import 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
postComponentsImports
Code samples
const inputBody = '{
"type": "object",
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "Excel file containing hose component data"
}
}
}';
const headers = {
'Content-Type':'multipart/form-data'
};
fetch('https://goldleaf.app/api/v1/components/import',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /components/import
Import component data via Excel file
Imports hose properties from an Excel file for bulk updates.
Body parameter
type: object
properties:
file:
type: string
format: binary
description: Excel file containing hose component data
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | true | none |
| ยป file | body | string(binary) | false | Excel file containing hose component data |
Responses
| Status | Meaning | Description | Schema |
|---|
