Skip to main content
PUT
Update a trip document

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

tripId
integer
required

Trip ID belonging to the authenticated organization.

id
integer
required

Record ID within the organization and any parent resource in this route.

Body

application/json

Request fields accepted by this operation. Omitted optional properties retain the behavior described above.

title
string

Validation: required|string|max:255.

Maximum string length: 255
Example:

"Follow up with trip participants"

category
string | null

Validation: nullable|string|max:100.

Maximum string length: 100
description
string | null

Validation: nullable|string|max:5000.

Maximum string length: 5000
Example:

"Please review the updated trip details."

visibility
enum<string>

Validation: required|in:all_participants,leaders_only,specific.

Available options:
all_participants,
leaders_only,
specific
Example:

"all_participants"

visible_to_participants
integer[] | null

Participant IDs belonging to this trip. At least one is required for specific visibility.

upload_id
integer | null

Validation: nullable|integer.

Example:

1

upload_key
string | null

Validation: nullable|string|max:255|required_with:file_name.

Maximum string length: 255
file_name
string | null

Validation: nullable|string|max:255|required_with:upload_key.

Maximum string length: 255

Response

Update a trip document response.

message
string
Example:

"Saved successfully."

data
object