---
title: "Set Scheduling"
method: POST
path: "/api/workforce/roles/{role_name}/scheduling"
tags: ["workforce"]
---

# Set Scheduling

`POST /api/workforce/roles/{role_name}/scheduling`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/workforce/roles/{role_name}/scheduling`
- Auth: none declared

The switch. Frederick: "I turn it on [per role] ... it's by the roles."

Gated on people:write rather than a scheduling-specific grant: deciding that
a job is rostered by machine is an employment decision, and it belongs with
whoever already administers people.

## Path parameters

- `role_name` string, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
