AlphaAlpha Docs

Unapprove a shift

Reverts the approval of a shift

PATCH
/shifts/{id}/unapprove
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/shifts/string/unapprove"
{
  "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"
}