Placements (load plan)
Read a leg's load plan, ask for candidate slots, check or add a boat placement across the legs it rides, move with all-legs or this-leg scope, remove at a stop or delete.
| Method | Endpoint | Purpose |
|---|---|---|
GET |
/v1/placement/plan/{trip_trailer_id}/{leg_id} |
The full plan for one trailer & leg: slots[] with occupants, physics, warnings, items, diagram_url |
GET |
/v1/placement/candidates/{trip_trailer_id}/{leg_id}?boat_id= |
Free slots that fit this boat on this leg, best first, with default offsets |
POST |
/v1/placement/check/{trip_trailer_id} |
Dry run of add: same body, returns ok, errors, warnings, conflicts without saving |
POST |
/v1/placement/add/{trip_trailer_id} |
boat_id, added_at_stop_id, removed_at_stop_id?, row_index, side, position, offset_in?, bow_direction?, overrides? |
POST |
/v1/placement/move/{placement_id} |
New slot/offset + scope ∈ all_legs / this_leg (leg_id for the latter) |
POST |
/v1/placement/remove-at-stop/{placement_id} |
stop_id — the boat comes off at that cargo stop |
POST |
/v1/placement/delete/{placement_id} |
Off the trip entirely |
A placement is one boat on one trailer from a cargo stop to a cargo stop; it rides every leg in between in the same slot unless a per-leg override says otherwise. All checks run for every leg the boat rides.
Candidates
Request
GET /v1/placement/candidates/1/1?boat_id=1
Authorization: Bearer rp_live_••••••••
Response 200
{
"success": true,
"trip_trailer_id": 1,
"leg_id": 1,
"legs": [
1,
2,
3
],
"boat_id": 1,
"candidates": [
{
"row_index": 1,
"side": "driver",
"position": "forward",
"slot_id": 1,
"offset_in": 36,
"bow_direction": "forward",
"warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null
}
]
},
{
"row_index": 1,
"side": "driver",
"position": "aft",
"slot_id": 2,
"offset_in": -228,
"bow_direction": "forward",
"warnings": [
{
"code": "FORWARD_OVERHANG_LIMIT",
"message": "Forward overhang of 19' 0\" exceeds the trailer limit of 4' 0\".",
"placement_id": null
},
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 3' 0\".",
"placement_id": null
}
]
},
"… 22 more"
]
}
Check, then add
check is add without the write — use it to show live feedback while the user drags a boat. add repeats the evaluation and saves if there is no error; warnings are saved and returned.
Request
POST /v1/placement/add/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"boat_id": 1,
"added_at_stop_id": 1,
"row_index": 1,
"side": "driver",
"position": "forward"
}
Response 201
{
"success": true,
"placement": {
"id": 1,
"boat_id": 1,
"boat_name": "Alpha",
"hull_class": "8+",
"seats": 8,
"coxed": true,
"sculling": false,
"length_in": 744,
"weight_lb": 209.44,
"bow_to_gunwale_in": 60,
"gunwale_length_in": 624,
"gunwale_to_stern_in": 60,
"row_index": 1,
"side": "driver",
"position": "forward",
"slot_id": 1,
"bow_position_in": 36,
"stern_position_in": 780,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 300,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 1,
"removed_at_stop_id": null,
"notes": null,
"depth_in": 12,
"beam_in": 24,
"is_override": false,
"offset_in": 36,
"warnings": [],
"legs": [
1,
2,
3
],
"overrides": [],
"trip_trailer_id": 1,
"created_by": 1001
},
"legs": [
1,
2,
3
],
"fit_warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null,
"leg_id": 3
}
]
}
A boat that joins at a pickup and leaves at the regatta:
Request
POST /v1/placement/add/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"boat_id": 4,
"added_at_stop_id": 2,
"removed_at_stop_id": 4,
"row_index": 2,
"side": "passenger",
"position": "forward"
}
Response 201
{
"success": true,
"placement": {
"id": 2,
"boat_id": 4,
"boat_name": "Delta",
"hull_class": "4+",
"seats": 4,
"coxed": true,
"sculling": false,
"length_in": 528,
"weight_lb": 115,
"bow_to_gunwale_in": 48,
"gunwale_length_in": 432,
"gunwale_to_stern_in": 48,
"row_index": 2,
"side": "passenger",
"position": "forward",
"slot_id": 16,
"bow_position_in": 48,
"stern_position_in": 576,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 96,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 2,
"removed_at_stop_id": 4,
"notes": null,
"depth_in": 11,
"beam_in": 22,
"is_override": false,
"offset_in": 48,
"warnings": [],
"legs": [
2
],
"overrides": [],
"trip_trailer_id": 1,
"created_by": 1001
},
"legs": [
2
],
"fit_warnings": [
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 8' 0\".",
"placement_id": null,
"leg_id": 2
}
]
}
Conflicts
A slot occupied on any leg the boat rides answers 409 with the leg-by-leg detail and suggested free slots, so a client can offer "forward driver on leg 1, aft centre on legs 2–3" and resend with overrides:
Request
POST /v1/placement/add/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"boat_id": 2,
"added_at_stop_id": 1,
"row_index": 1,
"side": "driver",
"position": "forward"
}
Response 409
{
"success": false,
"error_code": "RP-603",
"error": "The boat would overlap another boat in the same slot.",
"conflicts": [
{
"leg_id": 1,
"leg_index": 0,
"from_stop_id": 1,
"to_stop_id": 2,
"leg_name": "Leg 1: Boathouse → Podunk RC",
"reason": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"errors": [
{
"code": "RP-603",
"message": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"placement_id": 1
}
],
"suggested_slots": [
{
"row_index": 1,
"side": "center",
"position": "forward",
"slot_id": 4,
"offset_in": 36,
"bow_direction": "forward",
"warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null
}
]
},
{
"row_index": 1,
"side": "center",
"position": "aft",
"slot_id": 5,
"offset_in": -228,
"bow_direction": "forward",
"warnings": [
{
"code": "FORWARD_OVERHANG_LIMIT",
"message": "Forward overhang of 19' 0\" exceeds the trailer limit of 4' 0\".",
"placement_id": null
},
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 3' 0\".",
"placement_id": null
}
]
},
"… 4 more"
]
},
{
"leg_id": 2,
"leg_index": 1,
"from_stop_id": 2,
"to_stop_id": 4,
"leg_name": "Leg 2: Podunk RC → Head of the River",
"reason": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"errors": [
{
"code": "RP-603",
"message": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"placement_id": 1
}
],
"suggested_slots": [
{
"row_index": 1,
"side": "center",
"position": "forward",
"slot_id": 4,
"offset_in": 36,
"bow_direction": "forward",
"warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null
}
]
},
{
"row_index": 1,
"side": "center",
"position": "aft",
"slot_id": 5,
"offset_in": -228,
"bow_direction": "forward",
"warnings": [
{
"code": "FORWARD_OVERHANG_LIMIT",
"message": "Forward overhang of 19' 0\" exceeds the trailer limit of 4' 0\".",
"placement_id": null
},
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 3' 0\".",
"placement_id": null
}
]
},
"… 4 more"
]
},
{
"leg_id": 3,
"leg_index": 2,
"from_stop_id": 4,
"to_stop_id": 5,
"leg_name": "Leg 3: Head of the River → Boathouse",
"reason": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"errors": [
{
"code": "RP-603",
"message": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale.",
"placement_id": 1
}
],
"suggested_slots": [
{
"row_index": 1,
"side": "center",
"position": "forward",
"slot_id": 4,
"offset_in": 36,
"bow_direction": "forward",
"warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null
}
]
},
{
"row_index": 1,
"side": "center",
"position": "aft",
"slot_id": 5,
"offset_in": -228,
"bow_direction": "forward",
"warnings": [
{
"code": "FORWARD_OVERHANG_LIMIT",
"message": "Forward overhang of 19' 0\" exceeds the trailer limit of 4' 0\".",
"placement_id": null
},
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 3' 0\".",
"placement_id": null
}
]
},
"… 4 more"
]
}
],
"fit_warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null,
"leg_id": 3
}
],
"boat_id": 2,
"reason": "Overlaps Alpha in row 1 driver by 52' 0\" gunwale to gunwale."
}
overrides is a JSON map keyed by the leg's from_stop_id: {"<stop_id>": {"row_index": 1, "side": "center", "position": "aft", "offset_in": 48}}.
Move
Request
POST /v1/placement/move/1
Authorization: Bearer rp_live_••••••••
Content-Type: application/json
{
"row_index": 1,
"side": "passenger",
"position": "forward",
"scope": "this_leg",
"leg_id": 2
}
Response 200
{
"success": true,
"placement": {
"id": 1,
"boat_id": 1,
"boat_name": "Alpha",
"hull_class": "8+",
"seats": 8,
"coxed": true,
"sculling": false,
"length_in": 744,
"weight_lb": 209.44,
"bow_to_gunwale_in": 60,
"gunwale_length_in": 624,
"gunwale_to_stern_in": 60,
"row_index": 1,
"side": "driver",
"position": "forward",
"slot_id": 1,
"bow_position_in": 36,
"stern_position_in": 780,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 300,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 1,
"removed_at_stop_id": null,
"notes": null,
"depth_in": 12,
"beam_in": 24,
"is_override": false,
"offset_in": 36,
"warnings": [],
"legs": [
1,
2,
3
],
"overrides": [
{
"from_stop_id": 2,
"row_index": 1,
"side": "passenger",
"position": "forward",
"slot_id": 7,
"offset_in": 36,
"bow_direction": "forward"
}
],
"trip_trailer_id": 1,
"created_by": 1001
},
"fit_warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null,
"leg_id": 2
}
]
}
The plan
Request
GET /v1/placement/plan/1/2
Authorization: Bearer rp_live_••••••••
Response 200
{
"success": true,
"plan": {
"version": 1,
"trailer": {
"id": 1,
"name": "40' 4-row / 3-wide shell trailer (template)",
"build_year": null,
"overall_length_in": 480,
"width_in": 102,
"height_unloaded_in": 144,
"height_loaded_in": 162,
"gvwr_lb": 12000,
"tongue_weight_target_pct": 10,
"bed": {
"length_in": 180,
"width_in": 96,
"height_from_ground_in": 48,
"start_in": 96
},
"posts": [
{
"index": 1,
"position_in": 96
},
{
"index": 2,
"position_in": 216
},
"… 2 more"
],
"axles": [
{
"index": 1,
"position_in": 330,
"rating_lb": 6000
},
{
"index": 2,
"position_in": 366,
"rating_lb": 6000
}
],
"rows": [
{
"index": 1,
"height_from_ground_in": 60,
"slots": [
{
"id": 1,
"side": "driver",
"position": "forward",
"width_in": 34,
"usable": true,
"blocked_from_in": null,
"blocked_to_in": null,
"note": null
},
{
"id": 2,
"side": "driver",
"position": "aft",
"width_in": 34,
"usable": true,
"blocked_from_in": null,
"blocked_to_in": null,
"note": null
},
"… 7 more"
]
},
{
"index": 2,
"height_from_ground_in": 84,
"slots": [
{
"id": 10,
"side": "driver",
"position": "forward",
"width_in": 34,
"usable": true,
"blocked_from_in": null,
"blocked_to_in": null,
"note": null
},
{
"id": 11,
"side": "driver",
"position": "aft",
"width_in": 34,
"usable": true,
"blocked_from_in": null,
"blocked_to_in": null,
"note": null
},
"… 7 more"
]
},
"… 2 more"
]
},
"tow_vehicle": {
"id": 1,
"name": "Big Red",
"make": "Ford",
"model": "F-250",
"year": null,
"license_plate": "ROW 4EVR",
"bed_length_in": 102,
"cab_height_in": 78,
"overall_length_in": 250,
"hitch_to_cab_in": 110,
"hitch_to_bed_end_in": 8,
"tow_capacity_lb": 12500,
"max_tongue_weight_lb": 1250,
"outline": [
{
"x": -8,
"y": 0
},
{
"x": -8,
"y": 58.5
},
"… 6 more"
]
},
"placements": [
{
"id": 1,
"boat_id": 1,
"boat_name": "Alpha",
"hull_class": "8+",
"seats": 8,
"coxed": true,
"sculling": false,
"length_in": 744,
"weight_lb": 209.44,
"bow_to_gunwale_in": 60,
"gunwale_length_in": 624,
"gunwale_to_stern_in": 60,
"row_index": 1,
"side": "passenger",
"position": "forward",
"slot_id": 7,
"bow_position_in": 36,
"stern_position_in": 780,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 300,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 1,
"removed_at_stop_id": null,
"notes": null
},
{
"id": 2,
"boat_id": 4,
"boat_name": "Delta",
"hull_class": "4+",
"seats": 4,
"coxed": true,
"sculling": false,
"length_in": 528,
"weight_lb": 115,
"bow_to_gunwale_in": 48,
"gunwale_length_in": 432,
"gunwale_to_stern_in": 48,
"row_index": 2,
"side": "passenger",
"position": "forward",
"slot_id": 16,
"bow_position_in": 48,
"stern_position_in": 576,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 96,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 2,
"removed_at_stop_id": 4,
"notes": null
}
],
"items": [],
"physics": {
"boat_weight_lb": 324.4,
"item_weight_lb": 0,
"total_load_lb": 5124.4,
"tongue_weight_lb": -24.2,
"tongue_weight_pct": -0.5,
"axle_loads_lb": [
2574.3,
2574.3
],
"cab_clearance_in": null,
"bed_clearance_in": null,
"warnings": [
{
"code": "TONGUE_NEGATIVE",
"message": "Tongue weight is negative (-24 lb): the load lifts the hitch. Move weight forward.",
"placement_id": null
}
]
},
"trip": {
"id": 1,
"name": "Head of the River",
"whitelabel_id": 10,
"bc_regatta_id": null,
"regatta_name": null,
"public_slug": null
},
"leg": {
"id": 2,
"index": 1,
"name": "Leg 2: Podunk RC → Head of the River",
"origin": {
"id": 2,
"name": "Podunk RC",
"address": null,
"lat": null,
"lng": null,
"time_zone": "America/New_York",
"eta": null,
"etd": null,
"ata": null,
"atd": null
},
"destination": {
"id": 4,
"name": "Head of the River",
"address": null,
"lat": null,
"lng": null,
"time_zone": "America/New_York",
"eta": null,
"etd": 1810486800,
"ata": null,
"atd": null
},
"depart_at": null,
"depart_tz": "America/New_York",
"arrive_at": null,
"arrive_tz": "America/New_York"
},
"branding": {
"club_name": "Riverside Rowing Club",
"logo_url": "https://cdn.example.com/logos/rrc.png",
"primary_color": "#1e4db7"
},
"updated_at": 1800000000
},
"clearance_by_pitch": [
{
"pitch_deg": 0,
"cab_clearance_in": null,
"bed_clearance_in": null,
"cab_boat": null,
"bed_boat": null
},
{
"pitch_deg": 8,
"cab_clearance_in": null,
"bed_clearance_in": null,
"cab_boat": null,
"bed_boat": null
},
{
"pitch_deg": -8,
"cab_clearance_in": null,
"bed_clearance_in": null,
"cab_boat": null,
"bed_boat": null
}
],
"placements": [
{
"id": 1,
"boat_id": 1,
"boat_name": "Alpha",
"hull_class": "8+",
"seats": 8,
"coxed": true,
"sculling": false,
"length_in": 744,
"weight_lb": 209.44,
"bow_to_gunwale_in": 60,
"gunwale_length_in": 624,
"gunwale_to_stern_in": 60,
"row_index": 1,
"side": "passenger",
"position": "forward",
"slot_id": 7,
"bow_position_in": 36,
"stern_position_in": 780,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 300,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 1,
"removed_at_stop_id": null,
"notes": null,
"depth_in": 12,
"beam_in": 24,
"is_override": true,
"offset_in": 36,
"warnings": [],
"legs": [
1,
2,
3
]
},
{
"id": 2,
"boat_id": 4,
"boat_name": "Delta",
"hull_class": "4+",
"seats": 4,
"coxed": true,
"sculling": false,
"length_in": 528,
"weight_lb": 115,
"bow_to_gunwale_in": 48,
"gunwale_length_in": 432,
"gunwale_to_stern_in": 48,
"row_index": 2,
"side": "passenger",
"position": "forward",
"slot_id": 16,
"bow_position_in": 48,
"stern_position_in": 576,
"bow_direction": "forward",
"overhang_forward_in": 0,
"overhang_aft_in": 96,
"spans_posts": [
1,
2,
"… 2 more"
],
"added_at_stop_id": 2,
"removed_at_stop_id": 4,
"notes": null,
"depth_in": 11,
"beam_in": 22,
"is_override": false,
"offset_in": 48,
"warnings": [],
"legs": [
2
]
}
],
"fit_warnings": [
{
"code": "AFT_OVERHANG_LIMIT",
"message": "Aft overhang of 25' 0\" exceeds the trailer limit of 15' 0\".",
"placement_id": null,
"hard": false
},
{
"code": "AFT_OVERHANG",
"message": "Overhangs the rear of the trailer by 8' 0\".",
"placement_id": null,
"hard": false
}
],
"warnings": [],
"trip": {
"id": 1,
"whitelabel_id": 10,
"name": "Head of the River",
"status": "draft",
"bc_regatta_id": null,
"regatta_name": null,
"regatta_venue": null,
"regatta_venue_id": null,
"regatta_start_date": null,
"regatta_end_date": null,
"departure_planned_at": null,
"return_planned_at": null,
"created_by": 1001,
"notes": null,
"created_at": "2027-01-15 08:00:00",
"updated_at": "2027-01-15 08:00:00",
"club_timezone": "America/New_York",
"departure_planned_at_local": null,
"departure_planned_at_display": null,
"return_planned_at_local": null,
"return_planned_at_display": null,
"is_linked": false
},
"trip_trailer": {
"id": 1,
"trip_id": 1,
"trailer_id": 1,
"tow_vehicle_id": 1,
"driver_name": "Dana Rivers",
"driver_phone": "+1 555 0100",
"sort_order": 0
},
"trailers": [
{
"id": 1,
"trip_id": 1,
"trailer_id": 1,
"tow_vehicle_id": 1,
"driver_name": "Dana Rivers",
"driver_phone": "+1 555 0100",
"sort_order": 0,
"drivers": [],
"can_operate": true
}
],
"legs": [
{
"leg_id": 1,
"trip_id": 1,
"leg_index": 0,
"from_stop_id": 1,
"to_stop_id": 2,
"from_name": "Boathouse",
"to_name": "Podunk RC",
"from_type": "origin",
"to_type": "pickup",
"label": "Leg 1: Boathouse → Podunk RC",
"updated_at": "2027-01-15 08:00:00",
"is_current": false
},
{
"leg_id": 2,
"trip_id": 1,
"leg_index": 1,
"from_stop_id": 2,
"to_stop_id": 4,
"from_name": "Podunk RC",
"to_name": "Head of the River",
"from_type": "pickup",
"to_type": "regatta",
"label": "Leg 2: Podunk RC → Head of the River",
"updated_at": "2027-01-15 08:00:00",
"is_current": true
},
{
"leg_id": 3,
"trip_id": 1,
"leg_index": 2,
"from_stop_id": 4,
"to_stop_id": 5,
"from_name": "Head of the River",
"to_name": "Boathouse",
"from_type": "regatta",
"to_type": "destination",
"label": "Leg 3: Head of the River → Boathouse",
"updated_at": "2027-01-15 08:00:00",
"is_current": false
}
],
"leg": {
"leg_id": 2,
"leg_index": 1,
"from_stop_id": 2,
"to_stop_id": 4,
"name": "Leg 2: Podunk RC → Head of the River"
},
"cargo_stops": [
{
"stop_id": 1,
"name": "Boathouse",
"type": "origin",
"sort_order": 0,
"is_at_or_before_leg": true,
"is_after_leg": false
},
{
"stop_id": 2,
"name": "Podunk RC",
"type": "pickup",
"sort_order": 1,
"is_at_or_before_leg": true,
"is_after_leg": false
},
"… 2 more"
],
"can_edit": true,
"svg": {
"side": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://ww…",
"rows": [
{
"row_index": 1,
"svg": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://ww…"
},
{
"row_index": 2,
"svg": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://ww…"
},
"… 2 more"
]
}
}
physics contains trailer weight, tongue weight and percentage, tow/GVWR usage, max forward/aft overhang and the limits each is compared with; warnings[] are the per-boat and per-trailer findings described in the Load planning guide.