Skip to main content
POST
Add 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.

Body

application/json

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

title
string
required

Validation: required|string|max:255.

Maximum string length: 255
Example:

"Follow up with trip participants"

visibility
enum<string>
required

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

Available options:
all_participants,
leaders_only,
specific
Example:

"all_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."

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

Validation: required_without:upload_id|string|max:255.

Maximum string length: 255
file_name
string

Validation: required_without:upload_id|string|max:255.

Maximum string length: 255

Response

Add a trip document response.

message
string
Example:

"Saved successfully."

data
object