---
title: "Accept a budget suggestion"
method: POST
path: "/analytics/v1/budget-suggestions/{id}/actions/accept"
tags: ["Budget Suggestions"]
---

# Accept a budget suggestion

`POST /analytics/v1/budget-suggestions/{id}/actions/accept`

Marks the suggestion as accepted and links it to an existing budget. Create the budget first via
`POST /analytics/v1/budgets`, then pass its `id` as `budgetId`. The budget must belong to your account.

## Path parameters

- `id` string, required

## Request body

- BudgetSuggestionAcceptRequest — Links a budget suggestion to an existing budget.
  - `budgetId` string, required — ID of the budget (created via POST /analytics/v1/budgets) to link this suggestion to.
  - `editedBeforeAccept` boolean — Whether the customer edited the suggested values before accepting.

## Response `200`

OK - The suggestion was accepted and linked to the budget.

- object
  - `budgetId` string — ID of the budget the suggestion was linked to.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.
- `500` — Internal Server Error - Something went wrong with the DoiT API server.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
