pitches

Updates pitch metadata (title, description, duration). When image_ids is omitted from the request, existing image associations remain unchanged. When image_ids is an empty array, all image associations are removed. When image_ids is a non-empty array, the provided IDs are added to existing associations (additive, not replacement). The response includes images with presigned medium_url for each image.

patch/api/v1/trips/{tripID}/pitches/{pitchID}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/trips/{tripID}/pitches/{pitchID}
  • Auth: none declared

Path parameters

tripIDstring required

Trip ID

pitchIDstring required

Pitch ID

Request body

descriptionstring
durationinteger
image_idsstring[]

ImageIDs, when non-nil, fully replaces the pitch's image associations. Pass an empty slice to remove all images; omit the field to leave images unchanged.

titlestring

Response

OK

audio_urlstring
comment_countinteger
created_atstring
descriptionstring
durationinteger
idstring
namestring
profile_picture_urlstring
titlestring
trip_idstring
updated_atstring
user_idstring
usernamestring

Changes