/hoseassembly/{hoseAssemblyId}/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 Assembly
postHoseAssemblyIdNewVersion
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/hoseassembly/{hoseAssemblyId}/newversion", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /hoseassembly/{hoseAssemblyId}/newversion
Create a new version of a hose assembly
Creates a new version of the specified hose assembly.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseAssemblyId | path | string | true | none |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | New hose assembly version created successfully | None |
| 500 | Internal Server Error | Server error | string |
