# Create and manage schedules and shifts

> List and manage schedules, assigned shifts, unassigned shifts, and shift custom fields in Rippling using the Scheduling API.

## Overview

Rippling’s Scheduling APIs let you create schedules, add assigned and unassigned shifts, sign a worker up for an open shift, and store custom field values on a shift.

_Key terms:_

-   **Schedule**: A named group of team members and the shifts they work. Shifts are added to a schedule.
-   **Assigned shift**: A shift assigned to a specific worker.
-   **Unassigned shift**: A shift on a schedule that is not assigned to a worker. It is either an open shift or an empty shift.
-   **Open shift**: An unassigned shift workers can sign up for.
-   **Empty shift**: An unassigned shift that is not open for sign-up.
-   **Shift custom fields**: Extra values stored on an assigned or unassigned shift.

### Available endpoints

| Endpoint | Description |
| --- | --- |
| [GET List schedules](https://developer.rippling.com/documentation/rest-api/reference/list-schedules) | List schedules. |
| [GET Retrieve a specific schedule](https://developer.rippling.com/documentation/rest-api/reference/get-schedules) | Retrieve one schedule by ID. |
| [POST Create a new schedule](https://developer.rippling.com/documentation/rest-api/reference/create-schedules) | Create a schedule. |
| [PATCH Update a schedule](https://developer.rippling.com/documentation/rest-api/reference/update-schedules) | Update a schedule. |
| [GET List shift assignments](https://developer.rippling.com/documentation/rest-api/reference/list-shiftassignments) | List assigned shifts. |
| [GET Retrieve a specific shift assignment](https://developer.rippling.com/documentation/rest-api/reference/get-shiftassignments) | Retrieve one assigned shift by ID. |
| [POST Create a new shift assignment](https://developer.rippling.com/documentation/rest-api/reference/create-shiftassignments) | Create an assigned shift. |
| [PATCH Update a shift assignment](https://developer.rippling.com/documentation/rest-api/reference/update-shiftassignments) | Update an assigned shift. |
| [PATCH Update custom fields for a shift assignment](https://developer.rippling.com/documentation/rest-api/reference/update-shiftassignments-customfields) | Set custom fields on an assigned shift. |
| [GET List unassigned shifts](https://developer.rippling.com/documentation/rest-api/reference/list-unassignedshifts) | List unassigned shifts. |
| [GET Retrieve a specific unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/get-unassignedshifts) | Retrieve one unassigned shift by ID. |
| [POST Create a new unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/create-unassignedshifts) | Create an open or empty shift. |
| [POST Assign a worker to an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/assign-unassignedshifts) | Assign a worker to an open shift. |
| [PATCH Update an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/update-unassignedshifts) | Update an unassigned shift. |
| [PATCH Update custom fields for an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/update-unassignedshifts-customfields) | Set custom fields on an unassigned shift. |

Related endpoints:

| Endpoint | Description |
| --- | --- |
| [GET List workers](https://developer.rippling.com/documentation/rest-api/reference/list-workers) | Use the worker ID as `worker_id` on an assigned shift, or as a schedule member. |
| [GET List job codes](https://developer.rippling.com/documentation/rest-api/reference/list-job-codes) | Use the job code ID when creating a shift. |

### Suggested workflow

1.  [List schedules](https://developer.rippling.com/documentation/rest-api/guides/scheduling#schedules) or [create a schedule](https://developer.rippling.com/documentation/rest-api/guides/scheduling#schedule). Keep the schedule ID.
2.  Add shifts to that schedule. [Create an assigned shift](https://developer.rippling.com/documentation/rest-api/guides/scheduling#assigned-shift) when the worker is already known. [Create an unassigned shift](https://developer.rippling.com/documentation/rest-api/guides/scheduling#unassigned-shift) when it is not.
3.  For an unassigned shift, set `open_shift_config` to make it an open shift. Omit `open_shift_config` to keep it an empty shift.
4.  [Assign a worker to an open shift](https://developer.rippling.com/documentation/rest-api/guides/scheduling#assign-shift-to-worker) when someone signs up.
5.  [Update custom fields](https://developer.rippling.com/documentation/rest-api/guides/scheduling#custom-field-for-assigned-shift) on an assigned or unassigned shift when the shift needs extra details.

* * *

## Requirements

-   The Rippling API SKU
-   An API token with the following scopes:
    -   `schedules.read` to fetch schedules
    -   `shiftassignments.read` to fetch shift assignments
    -   `unassignedshifts.read` to fetch unassigned shifts
    -   `schedules.read-write` to read/write schedule data
    -   `shiftassignments.read-write` to read/write shift assignment data, including shift custom fields
    -   `unassignedshifts.read-write` to read/write unassigned shift data, including assigning a worker and shift custom fields

* * *

## Fetch

### Schedules

Use [GET List schedules](https://developer.rippling.com/documentation/rest-api/reference/list-schedules) to retrieve a paginated list of schedules.

_Request:_

```json
curl -L -X GET 'https://rest.ripplingapis.com/schedules/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Response:_

```json
{
  "results": [
    {
      "id": "692743a2e42e3d6ec23e2df4",
      "created_at": "2025-11-26T18:14:58.435000+00:00",
      "updated_at": "2025-11-26T18:21:03.076000+00:00",
      "name": "Engineering Team",
      "managers_id": [],
      "observers_id": [],
      "members_id": [
        "66a430b4d80b34a7fc931ab9",
        "6569928afb7bc7c3510f460f",
        "65699281fb7bc7c3510f44a6",
        "6569928dfb7bc7c3510f3f14",
        "6569929efb7bc7c3510f48f3"
      ],
      "managers": null,
      "observers": null,
      "members": null,
      "can_edit": true,
      "settings": {
        "timezone": "America/Los_Angeles"
      }
    }
]
}
```

| Response field | Description |
| --- | --- |
| `id` | Schedule ID. |
| `created_at` | When the schedule was created. |
| `updated_at` | When the schedule was last updated. |
| `name` | Name of the schedule. |
| `managers_id` | Worker IDs of the schedule managers. |
| `observers_id` | Worker IDs of the schedule observers. |
| `members_id` | Worker IDs of the schedule members. |
| `managers` | Manager records. Expand `managers` to populate this. `null` when not expanded. |
| `observers` | Observer records. Expand `observers` to populate this. `null` when not expanded. |
| `members` | Member records. Expand `members` to populate this. `null` when not expanded. |
| `can_edit` | Whether the caller can edit the schedule. |
| `settings.timezone` | IANA timezone for the schedule. |

Use [GET Retrieve a specific schedule](https://developer.rippling.com/documentation/rest-api/reference/get-schedules) to fetch a single schedule.

### Assigned shifts

Use [GET List shift assignments](https://developer.rippling.com/documentation/rest-api/reference/list-shiftassignments) to return assigned shifts.

_Request:_

```json
curl -L -X GET 'https://rest.ripplingapis.com/shiftassignments/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Response:_

```json
{
  "results": [
    {
      "id": "692e15ccc952e50a1c4f3eb5",
      "created_at": "2025-12-01T22:25:11.642000+00:00",
      "updated_at": "2025-12-01T22:25:11.643000+00:00",
      "worker_id": "66a4313ad80b34a7fc932dfd",
      "worker": null,
      "schedule_id": "6927433ff50eaaf5e219a7dc",
      "schedule": null,
      "shift_data": {
        "start_time": "2025-12-02T17:00:00+00:00",
        "end_time": "2025-12-03T01:00:00+00:00",
        "shift_segments": [
          {
            "start_time": "2025-12-02T17:00:00+00:00",
            "duration_minutes": 480,
            "end_time": "2025-12-03T01:00:00+00:00",
            "job_codes_id": []
          }
        ],
        "shift_breaks": []
      },
      "can_edit": true,
      "is_published": false,
      "published_version": null,
      "custom_fields": []
    }
  ],
  "next_link": null
}
```

| Response field | Description |
| --- | --- |
| `id` | Shift assignment ID. |
| `created_at` | When the assignment was created. |
| `updated_at` | When the assignment was last updated. |
| `worker_id` | Worker assigned to the shift. |
| `worker` | Worker record. Expand `worker` to populate this. `null` when not expanded. |
| `schedule_id` | Schedule the shift belongs to. |
| `schedule` | Schedule record. Expand `schedule` to populate this. `null` when not expanded. |
| `shift_data` | Current shift times, segments, and breaks. |
| `shift_data.start_time` | Shift start time. |
| `shift_data.end_time` | Shift end time. |
| `shift_data.shift_segments` | Segments of the shift. Each segment includes `start_time`, `end_time`, `duration_minutes`, and `job_codes_id`. |
| `shift_data.shift_breaks` | Breaks on the shift. |
| `can_edit` | Whether the assignment can be edited. |
| `is_published` | Whether the assignment is published. When `true`, `published_version` matches `shift_data`. |
| `published_version` | Published copy of the shift. `null` when the shift has not been published. |
| `custom_fields` | Custom field values. Each item has `name`, `type`, and `value`. |

Use [GET Retrieve a specific shift assignment](https://developer.rippling.com/documentation/rest-api/reference/get-shiftassignments) to fetch a single shift assignment.

### Unassigned shifts

Use [GET List unassigned shifts](https://developer.rippling.com/documentation/rest-api/reference/list-unassignedshifts) to fetch any open or unassigned shifts.

_Request:_

```json
curl -L -X GET 'https://rest.ripplingapis.com/unassignedshifts/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Response:_

```json
{
  "results": [
    {
      "id": "69274661d4db92b47ece4c54",
      "created_at": "2025-11-26T18:26:38.767000+00:00",
      "updated_at": "2025-11-26T18:26:38.768000+00:00",
      "schedule_id": "6927433ff50eaaf5e219a7dc",
      "schedule": null,
      "shift_data": {
        "start_time": "2024-12-25T17:00:00+00:00",
        "end_time": "2024-12-26T01:00:00+00:00",
        "shift_segments": [
          {
            "start_time": "2024-12-25T17:00:00+00:00",
            "duration_minutes": 480,
            "end_time": "2024-12-26T01:00:00+00:00",
            "job_codes_id": []
          }
        ],
        "shift_breaks": []
      },
      "assigned_count": 0,
      "target_count": 1,
      "is_published": true,
      "published_version": {
        "start_time": "2024-12-25T17:00:00+00:00",
        "end_time": "2024-12-26T01:00:00+00:00",
        "shift_segments": [
          {
            "start_time": "2024-12-25T17:00:00+00:00",
            "duration_minutes": 480,
            "end_time": "2024-12-26T01:00:00+00:00",
            "job_codes_id": []
          }
        ],
        "shift_breaks": []
      },
      "open_shift_config": {},
      "assigned_shift_ids": [],
      "custom_fields": []
    }
  ]
}
```

| Response field | Description |
| --- | --- |
| `id` | Unassigned shift ID. |
| `created_at` | When the shift was created. |
| `updated_at` | When the shift was last updated. |
| `schedule_id` | Schedule the shift belongs to. |
| `schedule` | Schedule record. Expand `schedule` to populate this. `null` when not expanded. |
| `shift_data` | Current shift times, segments, and breaks. |
| `assigned_count` | Number of workers already assigned to this shift. |
| `target_count` | Number of slots this shift represents. |
| `is_published` | Whether the shift is published. |
| `published_version` | Published copy of the shift. |
| `open_shift_config` | Present when the shift is open for sign-up. `null` or absent when the shift is an empty placeholder. |
| `assigned_shift_ids` | IDs of the shift assignments created from this shift. |
| `custom_fields` | Custom field values. Each item has `name`, `type`, and `value`. |

Use [GET Retrieve a specific unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/get-unassignedshifts) to fetch a single unassigned shift.

* * *

## Create

### Schedule

Use [POST Create a new schedule](https://developer.rippling.com/documentation/rest-api/reference/create-schedules) to create a new schedule.

**Notes:**

-   You can assign managers, observers, and members to the schedule using this endpoint.
-   The **observers** of a schedule will be able to see shifts within the schedule but not manage the shifts (edit/create/remove a shift).
-   The **managers** of a schedule will be able to both see and manage shifts within a schedule.

_Request:_

```json
curl -L -X POST 'https://rest.ripplingapis.com/schedules/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "name": "Research Team",
  "managers_id": [
    "6569928afb7bc7c3510f460f"
  ],
  "observers_id": [
    "6569929efb7bc7c3510f48f3"
  ],
  "members_id": [
    "65699281fb7bc7c3510f44a6"
  ],
  "settings": {
    "timezone": "America/Denver"
  }
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `name` | No | Name of the schedule. |
| `managers_id` | No | Worker IDs of managers. Managers can see and manage shifts on the schedule. |
| `observers_id` | No | Worker IDs of observers. Observers can see shifts but cannot create, edit, or remove them. |
| `members_id` | No | Worker IDs of schedule members. |
| `settings` | No | Schedule settings. |
| `settings.timezone` | No | IANA timezone, such as `America/Denver`. |

_Response:_

```json
{
    "id": "692e19b216e0f25f2718a87e",
    "created_at": "2025-12-01T22:41:54.317000+00:00",
    "updated_at": "2025-12-01T22:41:59.018000+00:00",
    "name": "Research Team",
    "managers_id": [
        "6569928afb7bc7c3510f460f"
    ],
    "observers_id": [
        "6569929efb7bc7c3510f48f3"
    ],
    "members_id": [
        "65699281fb7bc7c3510f44a6"
    ],
    "managers": null,
    "observers": null,
    "members": null,
    "can_edit": true,
    "settings": {
        "timezone": "America/Denver"
    }
}
```

### Assigned shift

Use [POST Create a new shift assignment](https://developer.rippling.com/documentation/rest-api/reference/create-shiftassignments) to create a new shift that is assigned to a worker. Grab `worker_id` from [GET List workers](https://developer.rippling.com/documentation/rest-api/reference/list-workers) and `schedule_id` from [GET List schedules](https://developer.rippling.com/documentation/rest-api/reference/list-schedules).

_Request:_

```json
curl -L -X POST 'https://rest.ripplingapis.com/shiftassignments/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "worker_id": "66a430f3d80b34a7fc9323a6",
  "schedule_id": "6927433ff50eaaf5e219a7dc",
  "shift_data": {
    "start_time": "2025-12-02T17:00:00+00:00",
    "end_time": "2025-12-03T01:00:00+00:00"
  },
  "is_published": true
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `worker_id` | Yes | Worker assigned to the shift. From [GET List workers](https://developer.rippling.com/documentation/rest-api/reference/list-workers). |
| `schedule_id` | Yes | Schedule the shift belongs to. From [GET List schedules](https://developer.rippling.com/documentation/rest-api/reference/list-schedules). |
| `shift_data` | Yes | Shift times. |
| `shift_data.start_time` | Yes | Shift start time. |
| `shift_data.end_time` | Yes | Shift end time. |
| `shift_data.shift_segments` | No | Segments of the shift, including `job_codes_id`. |
| `shift_data.shift_breaks` | No | Breaks on the shift. |
| `shift_data.notes` | No | Notes for the shift. Maximum 256 characters. |
| `is_published` | Yes | Whether the assignment is published. |

_Response:_

```json
{
    "id": "692e1c2996d4c770361beffa",
    "created_at": "2025-12-01T22:52:25.985000+00:00",
    "updated_at": "2025-12-01T22:52:25.986000+00:00",
    "worker_id": "66a430f3d80b34a7fc9323a6",
    "worker": null,
    "schedule_id": "6927433ff50eaaf5e219a7dc",
    "schedule": null,
    "shift_data": {
        "start_time": "2025-12-02T17:00:00+00:00",
        "end_time": "2025-12-03T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-02T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-03T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "can_edit": true,
    "is_published": true,
    "published_version": {
        "start_time": "2025-12-02T17:00:00+00:00",
        "end_time": "2025-12-03T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-02T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-03T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "custom_fields": []
}
```

### Unassigned shift

Use [POST Create a new unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/create-unassignedshifts) to create an open or unassigned shift.

> **Note:**
> `target_count` refers to the number of unassigned shifts that are created. In Rippling, this is labeled as "Number of empty shifts" or "Number of open shifts". For example, to publish 10 open shifts for a single day/same time range/same position, you can POST one open shift with a `target_count` of 10. This open shift would then represent 10 available slots that employees can sign up for.

_Request:_

```json
curl -L -X POST 'https://rest.ripplingapis.com/unassignedshifts/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "schedule_id": "6927433ff50eaaf5e219a7dc",
  "shift_data": {
    "start_time": "2025-12-04T17:00:00+00:00",
    "end_time": "2025-12-05T01:00:00+00:00"
  },
  "target_count": 1,
  "is_published": true
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `schedule_id` | Yes | Schedule the shift belongs to. |
| `shift_data` | Yes | Shift times. |
| `shift_data.start_time` | Yes | Shift start time. |
| `shift_data.end_time` | Yes | Shift end time. |
| `shift_data.shift_segments` | No | Segments of the shift, including `job_codes_id`. |
| `shift_data.shift_breaks` | No | Breaks on the shift. |
| `shift_data.notes` | No | Notes for the shift. Maximum 256 characters. |
| `target_count` | Yes | Number of slots this shift represents. |
| `is_published` | Yes | Whether the shift is published. |
| `open_shift_config` | No | Set this to make an open shift. Omit it, or send `null`, for an empty placeholder. |

_Response:_

```json
{
    "id": "692e1d84795584144e75d5c6",
    "created_at": "2025-12-01T22:58:13.019000+00:00",
    "updated_at": "2025-12-01T22:58:13.020000+00:00",
    "schedule_id": "6927433ff50eaaf5e219a7dc",
    "schedule": null,
    "shift_data": {
        "start_time": "2025-12-04T17:00:00+00:00",
        "end_time": "2025-12-05T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-04T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-05T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "assigned_count": 0,
    "target_count": 1,
    "is_published": true,
    "published_version": {
        "start_time": "2025-12-04T17:00:00+00:00",
        "end_time": "2025-12-05T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-04T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-05T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "open_shift_config": null,
    "assigned_shift_ids": [],
    "custom_fields": []
}
```

### Assign shift to worker

Use [POST Assign a worker to an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/assign-unassignedshifts) to assign a worker to an unassigned shift. Grab the ID of the shift by calling [GET List unassigned shifts](https://developer.rippling.com/documentation/rest-api/reference/list-unassignedshifts).

_Request:_

```json
curl -L -X POST 'https://rest.ripplingapis.com/unassignedshifts/692e1d84795584144e75d5c6/assign/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "worker_id": "656992fcfb7bc7c3510f58c8"
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `worker_id` | Yes | Worker to assign. The shift must be an open shift and not already at `target_count`. |

_Response:_

```json
{
  "assignment_id": "692e1e50f6022e930475d634",
  "assigned_count": 1,
  "target_count": 1,
  "assigned_shift_ids": [
    "692e1e50f6022e930475d634"
  ]
}
```

* * *

## Update

### Schedule

Use [PATCH Update a schedule](https://developer.rippling.com/documentation/rest-api/reference/update-schedules) to update a schedule.

_Request:_

```json
curl -L -X PATCH 'https://rest.ripplingapis.com/schedules/6927433ff50eaaf5e219a7dc/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "name": "AM Team"
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `name` | No | Name of the schedule. |
| `managers_id` | No | Worker IDs of managers. |
| `observers_id` | No | Worker IDs of observers. |
| `members_id` | No | Worker IDs of schedule members. |
| `settings` | No | Schedule settings. |
| `settings.timezone` | No | IANA timezone for the schedule. |

_Response:_

```json
{
  "id": "6927433ff50eaaf5e219a7dc",
  "created_at": "2025-11-26T18:13:19.735000+00:00",
  "updated_at": "2025-11-26T18:21:29.638000+00:00",
  "name": "AM Team",
  "managers_id": [],
  "observers_id": [],
  "members_id": [
    "66a4313ad80b34a7fc932dfd",
    "66a4329fd80b34a7fc93624c"
  ],
  "managers": null,
  "observers": null,
  "members": null,
  "can_edit": false,
  "settings": {
    "timezone": "America/Los_Angeles"
  }
}
```

### Assigned shift

Use [PATCH Update a shift assignment](https://developer.rippling.com/documentation/rest-api/reference/update-shiftassignments) to update a specific shift assignment.

_Request:_

```json
curl -L -X PATCH 'https://rest.ripplingapis.com/shiftassignments/692e15ccc952e50a1c4f3eb5/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
    "worker_id": "66a4313ad80b34a7fc932dfd",
    "shift_data": {
        "start_time": "2025-12-03T17:00:00+00:00",
        "end_time": "2025-12-04T01:00:00+00:00"
  },
  "is_published": true
}
```

To unassign a worker from the shift if it is open/empty:

```json
{
  "worker_id": "",
  "shift_data": {
    "start_time": "2025-12-03T17:00:00+00:00",
    "end_time": "2025-12-04T01:00:00+00:00"
  },
  "is_published": true
}
```

| Request body field | Required | Description |
| --- | --- | --- |
| `worker_id` | Yes | Worker assigned to the shift. |
| `shift_data` | Yes | Shift times. |
| `shift_data.start_time` | Yes | Shift start time. |
| `shift_data.end_time` | Yes | Shift end time. |
| `shift_data.shift_segments` | No | Segments of the shift, including `job_codes_id`. |
| `shift_data.shift_breaks` | No | Breaks on the shift. |
| `shift_data.notes` | No | Notes for the shift. Maximum 256 characters. |
| `is_published` | Yes | Whether the assignment is published. |

_Response:_

```json
{
    "id": "692e15ccc952e50a1c4f3eb5",
    "created_at": "2025-12-01T22:25:11.642000+00:00",
    "updated_at": "2025-12-02T19:04:29.293000+00:00",
    "worker_id": "66a4313ad80b34a7fc932dfd",
    "worker": null,
    "schedule_id": "6927433ff50eaaf5e219a7dc",
    "schedule": null,
    "shift_data": {
        "start_time": "2025-12-03T17:00:00+00:00",
        "end_time": "2025-12-04T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-03T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-04T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "can_edit": true,
    "is_published": true,
    "published_version": {
        "start_time": "2025-12-03T17:00:00+00:00",
        "end_time": "2025-12-04T01:00:00+00:00",
        "shift_segments": [
            {
                "start_time": "2025-12-03T17:00:00+00:00",
                "duration_minutes": 480,
                "end_time": "2025-12-04T01:00:00+00:00",
                "job_codes_id": []
            }
        ],
        "shift_breaks": []
    },
    "custom_fields": [
        {
            "name": "Team Member ID",
            "type": "text",
            "value": "1"
        }
    ]
}
```

### Unassigned shift

Use [PATCH Update an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/update-unassignedshifts) to update an open or unassigned shift.

_Request:_

```json
curl -L -X PATCH 'https://rest.ripplingapis.com/unassignedshifts/692e1d84795584144e75d5c6/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "shift_data": {
    "start_time": "2025-12-04T17:00:00+00:00",
    "end_time": "2025-12-05T01:00:00+00:00"
  },
  "target_count": 1,
  "is_published": true
}
```

### Custom field for assigned shift

Use [PATCH Update custom fields for a shift assignment](https://developer.rippling.com/documentation/rest-api/reference/update-shiftassignments-customfields) to update custom fields for an assigned shift.

**Notes:**

-   The custom fields must already be added as a valid field within the **Catalog** > **Scheduling** > **Shift** object. See [Set up a custom field using the Catalog app](https://help.rippling.com/article?articleId=296271158612) for more details.

_Request:_

```json
curl -L -X PATCH 'https://rest.ripplingapis.com/shiftassignments/692e15ccc952e50a1c4f3eb5/customfields/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

_Request body:_

```json
{
  "Team Member ID": "1"
}
```

_Response:_

```json
{
  "id": "692e15ccc952e50a1c4f3eb5",
  "created_at": "2025-12-01T22:25:11.642000+00:00",
  "updated_at": "2025-12-01T22:25:11.643000+00:00",
  "worker_id": "66a4313ad80b34a7fc932dfd",
  "worker": null,
  "schedule_id": "6927433ff50eaaf5e219a7dc",
  "schedule": null,
  "shift_data": {
    "start_time": "2025-12-02T17:00:00+00:00",
    "end_time": "2025-12-03T01:00:00+00:00",
    "shift_segments": [
      {
        "start_time": "2025-12-02T17:00:00+00:00",
        "duration_minutes": 480,
        "end_time": "2025-12-03T01:00:00+00:00",
        "job_codes_id": []
      }
    ],
    "shift_breaks": []
  },
  "can_edit": true,
  "is_published": false,
  "published_version": null,
  "custom_fields": [
    {
      "name": "Team Member ID",
      "type": "text",
      "value": "1"
    }
  ]
}
```

### Custom field for unassigned shift

Use [PATCH Update custom fields for an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/update-unassignedshifts-customfields) to update custom fields for an unassigned or open shift.

_Request:_

```json
curl -L -X PATCH 'https://rest.ripplingapis.com/unassignedshifts/69274661d4db92b47ece4c54/customfields/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'
```

* * *

## Use cases

### Create placeholder shifts

A custom app calculates how many employees should be scheduled for specific days or weeks. The app is the source of truth for those counts, and it pushes them into Rippling as empty shifts. Managers then assign workers to those shifts in Rippling.

1.  Create an unassigned shift with [POST Create a new unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/create-unassignedshifts). Leave `open_shift_config` unset so the shift stays an empty placeholder.
2.  For a weekly count, create one shift at the start of the week and set `target_count` to the number of shifts managers need to fill that week.
3.  For a daily count, create one shift per day and set `target_count` to that day's required count.
4.  When a shift is for a specific role, include `job_codes_id` on a shift segment. Fetch valid job codes with [GET List job codes](https://developer.rippling.com/documentation/rest-api/reference/list-job-codes).

### Manage open shifts for contractors

A clinic schedules contractor doctors who are not Rippling workers, so they do not have a `worker_id`. The clinic tracks who is covering each shift, and the agreed rate, with custom fields on open shifts.

1.  If the schedule does not exist yet, create it with [POST Create a new schedule](https://developer.rippling.com/documentation/rest-api/reference/create-schedules).
2.  Create one open shift per coverage window with [POST Create a new unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/create-unassignedshifts). Set `open_shift_config` so workers can sign up, and set `target_count` to `1`.
3.  Create the custom fields once in Rippling under **Catalog** > **Scheduling** > **Shift**, such as "Doctor Name" and "Agreed Rate".
4.  Write those values with [PATCH Update custom fields for an unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/update-unassignedshifts-customfields). Send null for a field to clear it.
5.  Read the shift with [GET Retrieve a specific unassigned shift](https://developer.rippling.com/documentation/rest-api/reference/get-unassignedshifts). If "Doctor Name" is set, the shift is covered. If it is empty, the shift is still available.

* * *

## See also

-   [Set up a custom field using the Catalog app](https://help.rippling.com/article?articleId=296271158612)
-   [Get started with the Time API](https://developer.rippling.com/documentation/rest-api/guides/time-getting-started)
-   [API tokens and permissions](https://developer.rippling.com/documentation/rest-api/essentials/api-tokens)

Source: https://developer.rippling.com/documentation/rest-api/guides/scheduling

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
