When I Work · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for When I Work API Documentation Availabilities API

7 actions 7 updates phrasing extends openapi/when-i-work-availabilities-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 7

$.info
$.paths['/2/availabilityevents'].get
$.paths['/2/availabilityevents'].post
$.paths['/2/availabilityevents/{id}'].get
$.paths['/2/availabilityevents/{id}'].put
$.paths['/2/availabilityevents/{id}'].delete
$.paths['/2/availabilityevents/{id}/exceptions'].post

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 Availabilities API
  version: 1.0.0
extends: openapi/when-i-work-availabilities-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: 6
- target: $.paths['/2/availabilityevents'].get
  update:
    x-apievangelist-phrasing:
      intent: List availability events
      effect: read
      questions:
      - Which employees are unavailable or preferred over a date range?
      - Can I include everyone's availability data when listing events?
      instructions:
      - text: List availability events from {start} to {end}.
        slots:
          start: query.start
          end: query.end
      - text: Show {user_id}'s availability events between {start} and {end}.
        slots:
          user_id: query.user_id
          start: query.start
          end: query.end
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/availabilityevents'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an availability event
      effect: write
      questions:
      - How do I mark myself unavailable for a shift?
      - Can I create a recurring availability preference?
      instructions:
      - text: Create an availability event of type {type} from {start_time} to {end_time}.
        slots:
          type: requestBody.type
          start_time: requestBody.start_time
          end_time: requestBody.end_time
      - text: Mark {type} availability for {start_time} with notes {notes}.
        slots:
          type: requestBody.type
          start_time: requestBody.start_time
          notes: requestBody.notes
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/availabilityevents/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one availability event
      effect: read
      questions:
      - What are the details of a single availability event?
      - Can I fetch an availability event by its ID?
      instructions:
      - text: Get availability event {id}.
        slots:
          id: path.id
      - text: Show the details of availability event {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/availabilityevents/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update an availability event
      effect: write
      questions:
      - How do I change the time of an existing availability event?
      - Can I update the notes on an availability preference?
      instructions:
      - text: Update availability event {id} to {type} from {start_time} to {end_time}.
        slots:
          id: path.id
          type: requestBody.type
          start_time: requestBody.start_time
          end_time: requestBody.end_time
      - text: Change the notes on availability event {id} to {notes}.
        slots:
          id: path.id
          notes: requestBody.notes
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/availabilityevents/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an availability event
      effect: destructive
      questions:
      - How do I remove an availability event I no longer need?
      - Is deleting an availability event permanent?
      instructions:
      - text: Delete availability event {id}.
        slots:
          id: path.id
      - text: Remove the availability preference {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/2/availabilityevents/{id}/exceptions'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a one-time exception to a recurring availability event
      effect: write
      questions:
      - How do I mark a single shift as unavailable in the middle of a recurring schedule?
      - Can I create an all-day exception for a user's availability preference?
      instructions:
      - text: Add a {type} exception to availability event {id} from {start_time} to {end_time}.
        slots:
          type: requestBody.type
          id: path.id
          start_time: requestBody.start_time
          end_time: requestBody.end_time
      - text: Mark event {id} as unavailable ({type}) from {start_time} with notes {notes}.
        slots:
          id: path.id
          type: requestBody.type
          start_time: requestBody.start_time
          notes: requestBody.notes
      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-availabilities-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.