Create Shift Offer
Overview
Creates a shift offer and optionally offers it to resources
Category: Offers
Use this action to create a shift offer for a shift and optionally offer it to one or more resources in a single operation. A ShiftOffer is the parent record. Each entry in ResourceIds creates a ResourceShiftOffer linking that resource to the offer. Resources can then accept or decline the offer. Shift offers must be enabled for the tenant.
Request
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
ShiftId |
string | Yes | The ID of the shift to create an offer for | 0014ccb7-73ad-40e1-9282-2c492a0f313a |
ResourceIds |
array of string | No | Resource IDs to offer the shift to. Each creates a ResourceShiftOffer record. | ["001a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c","002a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"] |
Response
This action’s output is available as $createShiftOffer in JSONata expressions. See Response format for the standard result.data / result.errors structure and error handling patterns.
| Field | Type | Description |
|---|---|---|
result.data.ShiftOfferId |
string | The UID of the created shift offer |
result.data.ResourceShiftOfferIds |
array of string | The UIDs of the created resource shift offers |
Example output:
{
"ShiftOfferId": "0014ccb7-73ad-40e1-9282-2c492a0f313a",
"ResourceShiftOfferIds": [
"001a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"
]
}
Feedback
Was this page helpful?