---
title: "Edit customer gig"
method: PATCH
path: "/api/v1/customers/me/gigs/{id}"
tags: ["Customer Gigs"]
---

# Edit customer gig

`PATCH /api/v1/customers/me/gigs/{id}`

## Request

- Base URL: `http://localhost:3002`
- URL: `http://localhost:3002/api/v1/customers/me/gigs/{id}`
- Auth: HTTP bearer

Edits gig content while the gig is pending verification or open. Slot flags lock once non-withdrawn bids exist.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string, required
  - `description` string
  - `harbor` string, required
  - `boatTypes` string[]
  - `dateMode` 'SPECIFIC' | 'FLEXIBLE'
  - `dates` string[]
  - `flexibleWindowStart` string, date-time, nullable
  - `flexibleWindowEnd` string, date-time, nullable
  - `duration` string, required
  - `startTime` string
  - `timeWindow` 'MORNING' | 'AFTERNOON' | 'SUNSET' | 'EVENING' | 'FLEXIBLE'
  - `compensationCents` integer
  - `occasion` 'corporate-outings' | 'bachelorette-party' | 'proposal' | 'milestone-birthday' | 'general'
  - `partySize` integer
  - `needsCaptain` boolean, required
  - `needsBoat` boolean, required

## Response `200`

Gig updated

- object
  - `data` object, required
    - `ok` true, required

## Other responses

- `400`: Request body or query parameters failed validation.
- `401`: Authentication required, or the bearer token is missing or invalid.
- `403`: Authenticated but not permitted to access this resource.
- `404`: The requested resource does not exist (existence is not leaked).

---

[API](https://skmtc.dev/chartercaptain/apis/charter-captain-api.md) · [All operations](https://skmtc.dev/chartercaptain/apis/charter-captain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chartercaptain/apis/charter-captain-api/revisions/1ffea1113adb?raw)
