/hosekit/{hoseKitId}/newversion 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:
Hose Kits
postHoseKitIdNewVersion
Code samples
const headers = {
Accept: "application/json",
Authorization: {
type: "string",
},
};
fetch("https://goldleaf.app/api/v1/hosekit/{hoseKitId}/newversion", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /hosekit/{hoseKitId}/newversion
Create a new version of a hose kit
Creates a new version of an existing hose kit, retaining its previous version's details while creating a new document.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | header | string | true | Bearer token for authentication |
| hoseKitId | path | string(objectId) | true | ID of the hose kit to create a new version of |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | New hose kit version created successfully | None |
| 500 | Internal Server Error | Internal server error | string |
