Swap a person on a shift
swap_shift_recipientReplace one live person on a shift with another in one request. The replacement is added first and gets the offer email with the outgoing person's days; then the outgoing person is removed and gets a cancellation. Give remove_user_id and exactly one of add_user_id (an org member) or add_person (first_name, email, and optional phone, consent and company). A PENDING or STANDBY person needs gig-operations access; removing an accepted person needs finance access. If the add lands but the removal fails the response is SWAP_PARTIAL with both ids, so no seat is lost. Refused with 409 GIG_ROSTER_LOCKED on a completed and settled gig: reopen_event first. Confirmation-gated: it messages two people.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"offer_id": "<offer_id>",
"remove_user_id": "<remove_user_id>"
},
"name": "swap_shift_recipient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | the replacement pay, in dollars | |
| offer_id | Yes | crew offer id from list_crew_offers | |
| copy_days | No | default true: the replacement takes the outgoing person's days | |
| add_person | No | a person without an account taking the seat | |
| add_user_id | No | user_id (from list_org_members) of the org member taking the seat | |
| remove_user_id | Yes | the person coming off the shift | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { recipient_drafts [{ user_id, fee, username, email, shift_overlaps }], calllist_id, created_by_id, currency, date, days [{ accepted_count, capacity, date, effective_end_time, effective_fee, effective_start_time, end_time, fee, and 4 more fields }], description, end_time, event_id, event_status, event_title, event_type, event_timezone, expires_at, fee, fee_type, id, kind, and 11 more fields } } | |
| error | No | when ok is false |