bymundi API

plan_refused

Change refused · HTTP 422

What it means

The itinerary change breaks a structural rule (a block that cannot hold another, a day on a trip whose days come from its design, a missing anchor…). errors[] points at the op.

What to do

Fix the op named in errors[]. On a trip with a design, change the design and call POST /trips/{tripId}/itinerary/sync instead of adding or removing days.

Example

{
  "type": "https://api.bymundi.com/problems/plan_refused",
  "title": "Change refused",
  "status": 422,
  "detail": "The itinerary change breaks a structural rule (a block that cannot hold another, a day on a trip whose days come from its design, a missing anchor…). `errors[]` points at the op.",
  "code": "plan_refused",
  "requestId": "req_…"
}

How to read any error: Errors guide.