Update

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

Update a shift report

Path parameters

  • id string Required
application/json

Body Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
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"
    }
  ]
}