---
title: "Change a line"
method: PATCH
path: "/api/v2/budgets/{externalId}/lines/{key}"
tags: ["Budgets (v2)"]
---

# Change a line

`PATCH /api/v2/budgets/{externalId}/lines/{key}`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v2/budgets/{externalId}/lines/{key}`
- Auth: HTTP bearer

One of `amount` (your own figure in the currency on screen), `reset` (the figure put back) or `enabled`
(an optional line switched off or on; the matching input switch follows).

## Request body

- object
  - `amount` string, nullable: Must not be greater than 32 characters.
  - `reset` boolean
  - `enabled` boolean

## Response `200`

- object
  - `external_id` string
  - `lines` object[]
    - `key` string
    - `user_amount` object
      - `amount` string
      - `currency` string

## 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.
- `422`: validation_failed: The request body failed validation; field messages are in `errors`.
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`: server_error: Unhandled failure; quote `request_id` to support.

---

[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)
