Update

PUT /api/locations/shifts/reports/{id}

Update a shift report

Path parameters

  • id string Required
application/json

Body Required

  • date string | string(date) Required

  • data object Required
  • comments string | null Required

    Maximum length is 2000.

  • shift object Required
    Hide shift attribute Show shift attribute object
    • id string Required

      Minimum length is 26, maximum length is 26.

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • date string | string(date) Required

    • data object Required
    • comments string | null Required

      Maximum length is 2000.

    • id string Required
    • shift object Required
      Hide shift attributes Show shift attributes object
      • startTime string(time) Required
      • endTime string(time) Required
      • dayOfWeek integer | null Required

        Minimum value is 0.0, maximum value is 6.0.

      • seatsCount integer Required

        Minimum value is 1.0, maximum value is 20.0.

      • isEnabled boolean Required
      • id string Required
      • location object Required
        Hide location attributes Show location attributes object
        • id string Required

          Minimum length is 26, maximum length is 26.

        • name string Required
    • submitter object Required
      Hide submitter attributes Show submitter attributes object
      • id string Required

        Minimum length is 26, maximum length is 26.

      • name string Required
      • username string Required
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
PUT /api/locations/shifts/reports/{id}
curl \
 -X PUT https://metropolitanabolivia.org/api/locations/shifts/reports/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"date":"string","data":{},"comments":"string","shift":{"id":"string"}}'
Request example
{
  "date": "string",
  "data": {},
  "comments": "string",
  "shift": {
    "id": "string"
  }
}
Response examples (200)
{
  "date": "string",
  "data": {},
  "comments": "string",
  "id": "string",
  "shift": {
    "startTime": "09:42:00+00:00",
    "endTime": "09:42:00+00:00",
    "dayOfWeek": 42,
    "seatsCount": 42,
    "isEnabled": true,
    "id": "string",
    "location": {
      "id": "string",
      "name": "string"
    }
  },
  "submitter": {
    "id": "string",
    "name": "string",
    "username": "string"
  }
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}