/hoseassembly/{hoseAssemblyId}/revise 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
postHoseAssemblyIdRevise
Code samples
const inputBody = '{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"revision": {
"type": "string",
"description": "New revision identifier (e.g., \"A\", \"B\", \"2\")."
}
},
"required": [
"revision"
]
}
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://goldleaf.app/api/v1/hoseassembly/{hoseAssemblyId}/revise',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /hoseassembly/{hoseAssemblyId}/revise
Create a new revision of a released hose assembly
Creates a new revision version of an existing released hose assembly.
Body parameter
{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"revision": {
"type": "string",
"description": "New revision identifier (e.g., \"A\", \"B\", \"2\")."
}
},
"required": ["revision"]
}
}
}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseAssemblyId | path | string | true | none |
| body | body | object | true | none |
| » params | body | object | false | none |
| »» revision | body | string | true | New revision identifier (e.g., "A", "B", "2"). |
Example responses
401 Response
"error"
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | New revision created successfully | None |
| 401 | Unauthorized | Server error | string |
| 500 | Internal Server Error | Server error | string |
