/organization/components 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
getOrganizationComponents
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/components?partNumber=type,string", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /organization/components
Gets the number of components with this part number
Retrieves the number of items for this organization with this part number (used to identify if the part number has already been assigned).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| partNumber | query | string | true | The part number to search for. |
Example responses
200 Response
{
"type": "number"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | the quantity of items for this organization that have this part number | number |
| 500 | Internal Server Error | Server error | string |
