API ReferenceStock site
Update a stock location
Updates an existing stock site
AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:18080/api/v1/stock-sites/string" \ -H "Content-Type: application/json" \ -d '{ "location": { "name": "string" }, "name": "string", "siteCategory": "WAREHOUSE", "storageType": "FREEZER", "type": "PHYSICAL" }'{
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"id": "string",
"location": {
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"coordinate": {
"latitude": -90,
"longitude": -180
},
"name": "string"
},
"name": "string",
"siteCategory": "WAREHOUSE",
"storageType": "FREEZER",
"subsidiaryId": "string",
"tenantId": "string",
"type": "PHYSICAL",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}