---
title: "Retry the failed legs"
method: POST
path: "/api/v2/itineraries/{externalId}/build/retry"
tags: ["Itineraries (v2)"]
---

# Retry the failed legs

`POST /api/v2/itineraries/{externalId}/build/retry`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v2/itineraries/{externalId}/build/retry`
- Auth: HTTP bearer

On a partial multi-city build, queues the legs that failed again (the "Retry failed cities" button). The
owner only; a build with nothing failed answers 409.

## Query parameters

- `buildId` string: A particular build; the latest when left out.

## Response `200`

- object
  - `build_id` string
  - `status` string
  - `legs` object[]
    - `leg_order` integer
    - `status` string
  - `terminal` boolean

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `404`: not_found: The record does not exist or the caller may not know it exists.
- `409`
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
