---
title: "Give feedback on a Decision"
method: POST
path: "/sites/{site}/decisions/{source_id}/feedback"
tags: ["Decisions"]
---

# Give feedback on a Decision

`POST /sites/{site}/decisions/{source_id}/feedback`

## Request

- Base URL: `https://api.onelence.com/v1`
- URL: `https://api.onelence.com/v1/sites/{site}/decisions/{source_id}/feedback`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.onelence.com/oauth/authorize`, token URL `https://api.onelence.com/oauth/token`, scopes: `workspace:write`)
  - HTTP bearer

Tells OneLence whether a source's current Decision was useful, already acted on, not relevant or based on wrong data. Pass the posture the Decision showed; if it changed since, read it again first.

## Path parameters

- `site` string, required
- `source_id` string, required

## Query parameters

- `dry_run` boolean

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `decision` 'scale' | 'hold' | 'stop', required: The posture the Decision showed.
  - `feedback` 'useful' | 'already_acted' | 'not_relevant' | 'data_wrong', required
  - `note` string
  - `start` string: Window start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end.
  - `end` string: Window end, inclusive for a date. Defaults to now.

## Response `200`

Success.

- object
  - `object` 'decision_feedback', required
  - `source_id` string, required
  - `decision` 'scale' | 'hold' | 'stop', required
  - `feedback` 'useful' | 'already_acted' | 'not_relevant' | 'data_wrong', required
  - `status` 'created' | 'updated' | 'unchanged', required
  - `recorded_at` string, nullable, required

## Other responses

- `400`: Invalid input; `error.param` names the field.
- `401`: Missing, expired or revoked token. WWW-Authenticate points to the resource metadata.
- `402`: subscription_required or upgrade_required; the error carries billing_url.
- `403`: insufficient_scope or admin_required.
- `404`: Unknown endpoint, site, source or record.
- `409`: A request with this Idempotency-Key is still running.
- `422`: This Idempotency-Key was already used for a different request.
- `429`: Rate limited. Retry after Retry-After seconds.
- `500`: OneLence could not complete the request.

---

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