Skip to main content
POST
Create a trip task

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"

task_type
enum<string> | null

Validation: nullable|in:standard,acknowledgement.

Available options:
standard,
acknowledgement,
null
Example:

"standard"

document_path
string | null

Validation: nullable|string|max:255.

Maximum string length: 255
document_name
string | null

Validation: nullable|string|max:255.

Maximum string length: 255
description
string | null

Validation: nullable|string|max:5000.

Maximum string length: 5000
Example:

"Please review the updated trip details."

due_date
string<date-time> | null

Validation: nullable|date.

Example:

"2026-10-20T09:00:00Z"

is_required
boolean

Validation: boolean.

Example:

false

requires_document
boolean

Validation: boolean.

Example:

false

requires_approval
boolean

Validation: boolean.

Example:

false

depends_on_task_id
integer | null

Existing task in this trip; on update it cannot be this task.

Example:

1

sort_order
integer | null

Validation: nullable|integer|min:0.

Required range: x >= 0
Example:

1

reminder_days_before
integer | null

Validation: nullable|integer|min:-365|max:365.

Required range: -365 <= x <= 365
Example:

1

reminders
object[] | null
depends_on_task_ids
integer[] | null
dependency_mode
enum<string> | null

Validation: nullable|in:and,or.

Available options:
and,
or,
null
Example:

"and"

target_role
enum<string> | null

Validation: nullable|in:all,participant,leader.

Available options:
all,
participant,
leader,
null
Example:

"all"

target_minors_only
boolean

Validation: boolean.

Example:

false

target_guardians_only
boolean

Validation: boolean.

Example:

false

target_tags_include
string[] | null
Maximum string length: 100
target_tags_exclude
string[] | null
Maximum string length: 100

Response

Create a trip task response.

message
string
Example:

"Saved successfully."

data
object

Task list rows contain derived dependency, targeting and completion fields; create/update return the model with loaded reminders and target_tags.