Generated by API Evangelist
Written by API Evangelist tooling for When I Work's API. It is a proposal applied on top of the contract, not a document When I Work publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for When I Work API Documentation Shift Requests API
version: 1.0.0
extends: openapi/when-i-work-shift-requests-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-22'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 5
- target: $.paths['/2/swaps'].get
update:
x-apievangelist-phrasing:
intent: List shift swap and drop requests
effect: read
questions:
- Which shifts are people swapping or dropping right now?
- Can I see only open swap requests for a shift?
instructions:
- text: List all shift requests.
- text: Show {type} shift requests for shift {shift_id}.
slots:
type: query.type
shift_id: query.shift_id
method: generated
generated: '2026-11-22'
- target: $.paths['/2/swaps'].post
update:
x-apievangelist-phrasing:
intent: Create a shift swap or drop request
effect: write
questions:
- How do I swap my shift with a coworker?
- Can I post a drop request so others can cover my shift?
instructions:
- text: Create a {type} shift request for shift {shift_id}.
slots:
type: requestBody.type
shift_id: requestBody.shift_id
- text: Swap shift {shift_id} for shifts {shifts}.
slots:
shift_id: requestBody.shift_id
shifts: requestBody.shifts
method: generated
generated: '2026-11-22'
- target: $.paths['/2/swaps/{swap_id}'].get
update:
x-apievangelist-phrasing:
intent: Get a shift request
effect: read
questions:
- What are the details of one shift swap request?
- Has a particular swap request been accepted yet?
instructions:
- text: Get shift request {swap_id}.
slots:
swap_id: path.swap_id
- text: Show the swap {swap_id}.
slots:
swap_id: path.swap_id
method: generated
generated: '2026-11-22'
- target: $.paths['/2/swaps/{swap_id}'].put
update:
x-apievangelist-phrasing:
intent: Accept, decline or cancel a shift request
effect: write
questions:
- How do I accept a shift swap request?
- Can I decline a coworker's shift request?
instructions:
- text: Set shift request {swap_id} to status {status}.
slots:
swap_id: path.swap_id
status: requestBody.status
- text: Accept shift request {swap_id} with {accepted_id}.
slots:
swap_id: path.swap_id
accepted_id: requestBody.accepted_id
method: generated
generated: '2026-11-22'
- target: $.paths['/2/swaps/{swap_id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a shift request
effect: destructive
questions:
- How do I cancel a shift swap request I posted?
- Can I delete a drop request before anyone picks it up?
instructions:
- text: Delete shift request {swap_id}.
slots:
swap_id: path.swap_id
- text: Cancel the swap {swap_id}.
slots:
swap_id: path.swap_id
method: generated
generated: '2026-11-22'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.