Skip to main content
POST
Add a trip budget item

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.

category
string
required

Validation: required|string|max:255.

Maximum string length: 255
amount
number
required

Validation: required|numeric|min:0|max:999999999.99.

Required range: 0 <= x <= 999999999.99
Example:

40

description
string | null

Validation: nullable|string.

Example:

"Please review the updated trip details."

sort_order
integer | null

Validation: nullable|integer|min:0.

Required range: x >= 0
Example:

1

Response

Add a trip budget item response.

id
integer
trip_id
integer
category
string
description
string | null
amount
number
sort_order
integer
created_at
string<date-time>
updated_at
string<date-time>