---
title: "List allocations"
method: GET
path: "/allocations"
tags: ["Allocations"]
---

# List allocations

`GET /allocations`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/allocations`
- Auth: HTTP bearer

## Query parameters

- `startingAfter` string
- `endingBefore` string
- `limit` integer
- `modifiedAtAfter` union
  - string, date
  - string, date-time
- `modifiedAtOnAfter` union
  - string, date
  - string, date-time
- `modifiedAtBefore` union
  - string, date
  - string, date-time
- `modifiedAtOnBefore` union
  - string, date
  - string, date-time
- `assignmentTypeId` 'project' | 'time_off'
- `memberId` string
- `projectId` string
- `startBefore` string, date
- `startOnBefore` string, date
- `endAfter` string, date
- `endOnAfter` string, date

## Response `200`

200

- object
  - `results` Allocation[]: The list of results for the current page.
    - `id` string: The unique identifier for the object.
    - `resourceTypeId` 'member' | 'placeholder': The type of resource assigned to this allocation.
    - `assignmentTypeId` 'project' | 'time_off': The type of assignment for this allocation.
    - `start` string, date: The start date of the allocation. Will be in the form YYYY-MM-DD.
    - `end` string, date: The end date of the allocation. Will be in the form YYYY-MM-DD.
    - `unit` 'day' | 'week' | 'month' | 'allocation' | 'ratio_of_capacity': The time unit that determines how the allocation is measured.
    - `hoursPerDay` number, nullable: The number of hours allocated per day. Only present when `unit` is `"day"`, otherwise `null`.
    - `hoursPerWeek` number, nullable: The number of hours allocated per week. Only present when `unit` is `"week"`, otherwise `null`.
    - `hoursPerMonth` number, nullable: The number of hours allocated per month. Only present when `unit` is `"month"`, otherwise `null`.
    - `hoursPerAllocation` number, nullable: The total number of hours for the entire allocation duration. Only present when `unit` is `"allocation"`, otherwise `null`.
    - `hoursRatioOfCapacity` number, nullable: The proportion of the member's available capacity allocated. Only present when `unit` is `"ratio_of_capacity"`, otherwise `null`.
    - `allocateOnTimeOffDays` boolean, nullable: Whether time is allocated on days when the member has time off. Only present when `assignmentTypeId` is `"project"` and `resourceTypeId` is `"member"`, otherwise `null`.
    - `totalHours` number: The total number of computed hours across all dates in the allocation.
    - `isBillable` boolean: Whether this allocation is billable.
    - `bookingTypeId` 'confirmed' | 'soft': The booking type of the allocation.
    - `notes` string, nullable: Notes associated with the allocation.
    - `readOnly` boolean: Whether this allocation is read-only. Allocations sourced from time entries or holidays are read-only.
    - `entity` 'allocation' | 'time_entry' | 'holiday': The source entity type.
    - `createdAt` string, date-time: The timestamp when the object was created.
    - `modifiedAt` string, date-time, nullable: The timestamp when the object was last modified. `null` for time-entry and holiday allocations, which are derived and have no modification timestamp.
    - `member` object, nullable: The member assigned to this allocation. Present when `resourceTypeId` is `"member"`, otherwise `null`.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the member.
    - `placeholder` object, nullable: The resource placeholder assigned to this allocation. Present when `resourceTypeId` is `"placeholder"`, otherwise `null`.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the resource placeholder.
    - `project` object, nullable: The project this allocation is assigned to. Present when `assignmentTypeId` is `"project"`, otherwise `null`.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the project.
      - `client` object: The client associated with the project.
        - `id` string: The unique identifier for the object.
        - `name` string: The name of the client.
    - `role` object, nullable: The project role associated with this allocation, if any.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the project role.
    - `task` object, nullable: The project task associated with this allocation, if any.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the project task.
    - `timeOffType` object, nullable: The time off type associated with this allocation. Present when `assignmentTypeId` is `"time_off"`, otherwise `null`.
      - `id` string: The unique identifier for the object.
      - `name` string: The name of the time off type.
  - `hasMore` boolean: Whether there are more results available after this page.

## Other responses

- `400`: 400
- `403`: 403

---

[API](https://skmtc.dev/ruddr/apis/ruddr-api.md) · [All operations](https://skmtc.dev/ruddr/apis/ruddr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ruddr/apis/ruddr-api/revisions/01c3f2a969ba?raw)
