---
title: "Update Target"
method: PUT
path: "/api/payments/targets/{target_id}"
tags: ["Payments"]
---

# Update Target

`PUT /api/payments/targets/{target_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/payments/targets/{target_id}`
- Auth: HTTP bearer

Update an allocation target.

## Path parameters

- `target_id` string, uuid, required

## Request body

- UpdateTargetRequest
  - `label` string, nullable
  - `sort_code` string, nullable
  - `account_number` string, nullable
  - `holder_name` string, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- AllocationTargetResponse
  - `id` string, required
  - `label` string, required
  - `sort_code` string, required
  - `account_number` string, required
  - `holder_name` string, required
  - `is_active` boolean, required
  - `goal_id` string, nullable
  - `goal_name` string, nullable
  - `allocation_type` string, nullable
  - `allocation_value` number, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
