/hoseassembly/{hoseAssemblyId}/release 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
postHoseAssemblyIdRelease
Code samples
const inputBody = '{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"doNotObsoleteOthers": {
"type": "boolean",
"description": "If true, do not obsolete other hose assemblies with the same revision."
}
}
}
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://goldleaf.app/api/v1/hoseassembly/{hoseAssemblyId}/release',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /hoseassembly/{hoseAssemblyId}/release
Release a hose assembly
Releases a hose assembly, ensuring there are no other released versions with the same revision. Optionally, do not obsolete other versions.
Body parameter
{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"doNotObsoleteOthers": {
"type": "boolean",
"description": "If true, do not obsolete other hose assemblies with the same revision."
}
}
}
}
}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseAssemblyId | path | string | true | none |
| body | body | object | false | Optional flags for release behavior |
| » params | body | object | false | none |
| »» doNotObsoleteOthers | body | boolean | false | If true, do not obsolete other hose assemblies with the same revision. |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Hose assembly released successfully | None |
| 500 | Internal Server Error | Server error | string |
