---
title: "Update Goal"
method: PATCH
path: "/api/goals/{goal_id}"
tags: ["goals"]
---

# Update Goal

`PATCH /api/goals/{goal_id}`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/goals/{goal_id}`
- Auth: HTTP bearer

## Path parameters

- `goal_id` integer, required

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- GoalPatch
  - `target_value` number, nullable
  - `budget_ceiling_cents` integer, nullable
  - `deadline` string, date, nullable
  - `status` string, nullable
  - `channel_mix_json` object, nullable

## Response `200`

Successful Response

- GoalOut
  - `id` integer, required
  - `type` string, required
  - `target_value` number, required
  - `budget_ceiling_cents` integer, required
  - `spent_cents` integer, required
  - `currency` string, required
  - `deadline` string, date, required
  - `status` string, required
  - `attribution_mode` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
