When I Work · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for When I Work API Documentation Shift Requests API

6 actions 6 updates phrasing extends openapi/when-i-work-shift-requests-api-openapi.yml
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.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/2/swaps'].get
$.paths['/2/swaps'].post
$.paths['/2/swaps/{swap_id}'].get
$.paths['/2/swaps/{swap_id}'].put
$.paths['/2/swaps/{swap_id}'].delete

OpenAPI Overlay

Raw ↑
# 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'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/when-i-work-shift-requests-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

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.

A second provider on the same verified email joins the account you already have.