AlphaAlpha Docs

Add sales orders to shift

Adds sales order IDs to a shift if all are found.

PATCH
/shifts/{id}/add-sales-orders
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 PATCH "http://localhost:18080/api/v1/shifts/string/add-sales-orders" \  -H "Content-Type: application/json" \  -d '[    "string"  ]'
{
  "approvedBy": "string",
  "canceled": true,
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "employees": [
    "string"
  ],
  "end": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "manager": "string",
  "note": "string",
  "number": "string",
  "salesOrders": [
    "string"
  ],
  "shiftStatus": "PLANNED",
  "start": "2019-08-24T14:15:22Z",
  "stockSiteId": "string",
  "subsidiaryId": "string",
  "teamIds": [
    "string"
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string",
  "waste": [
    "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"
}