AlphaAlpha Docs
API ReferenceStock site

Create a stock location

Creates a new stock site

POST
/stock-sites
AuthorizationBearer <token>

In: header

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 POST "http://localhost:18080/api/v1/stock-sites" \  -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"
}