v1

latestOpenAPI 3.0.3GPL 2.02026-07-17152326.5 KB
shift
user

Get all shifts of the requested user

get/users/{id}/shifts

Response

Ok

Example response

{
  "data": [
    {
      "id": 42,
      "name": "Cleanup the venue",
      "description": "You clean up the venue after the event. Its fun, we promise!",
      "starts_at": "2023-05-23T00:00:00.000000Z",
      "ends_at": "2023-05-23T00:00:00.000000Z",
      "location": {
        "id": 42,
        "name": "Foo"
      },
      "shift_type": {
        "id": 42,
        "name": "Foo"
      },
      "created_at": "2023-05-23T00:00:00.000000Z",
      "updated_at": "2023-05-23T00:00:00.000000Z",
      "needed_angel_types": [
        {
          "entries": [
            {
              "id": 42,
              "user": {
                "id": 42,
                "name": "Foo"
              },
              "freeloaded_by": {
                "id": 42,
                "name": "Foo"
              }
            }
          ],
          "angel_type": {
            "id": 42,
            "name": "Foo"
          },
          "needs": 3
        }
      ],
      "url": "https://example.com/shifts/42"
    }
  ]
}