メインコンテンツへスキップ

accept-budget-suggestion

dci accept-budget-suggestion id

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.

Request

Content-Type: application/json

Schema

{
"type": "object",
"description": "Links a budget suggestion to an existing budget.",
"required": [
"budgetId"
],
"properties": {
"budgetId": {
"type": "string",
"description": "ID of the budget (created via POST /analytics/v1/budgets) to link this suggestion to."
},
"editedBeforeAccept": {
"type": "boolean",
"description": "Whether the customer edited the suggested values before accepting."
}
}
}

Responses

200 (application/json)

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

{
"type": "object",
"properties": {
"budgetId": {
"type": "string",
"description": "ID of the budget the suggestion was linked to."
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

500 (application/json)

Internal Server Error - Something went wrong with the DoiT API server.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: accept-budget-suggestion, acceptbudgetsuggestion