# flow2act · Entscheidung erfassen

Genehmige oder lehne ein offenes Gate als berechtigte Person ab. Die Entscheidung folgt dem Genehmigungs- oder Ablehnungspfad des Gates. Bestehende Flows enden bei Ablehnung.

FLOW2ACT_ACCESS_TOKEN eines Nutzers mit zugeordneter Gate-Gruppe erforderlich. Nur der aktuelle offene Schritt ist bearbeitbar. outcome: approved|rejected für Freigaben; acknowledged für Kenntnisnahmen; optionaler comment mit maximal 2.000 Zeichen.

## POST /v1/gate-tasks/{taskId}/decisions

Authentication: FLOW2ACT_ACCESS_TOKEN from flow2act sign-in
Required tenant header: X-Organization-Id.
Required user permissions: Passende Freigabegruppe erforderlich. The API checks current membership, roles, key scopes and resource permissions on every request. Documentation visibility grants no access.

## Input parameters
- outcome (string, required): approved | rejected | acknowledged
- comment (string, optional): max length 2000 · default ""

## Request example (replace example IDs)

```sh
curl -X POST "https://api.flow2act.com/v1/gate-tasks/10000000-0000-4000-8000-000000000005/decisions" \
  -H "authorization: Bearer $FLOW2ACT_ACCESS_TOKEN" \
  -H "x-organization-id: 10000000-0000-4000-8000-000000000001" \
  -H "idempotency-key: example-decide-001" \
  -H "content-type: application/json" \
  --data-raw '{
  "outcome": "approved",
  "comment": "Deployment window confirmed."
}'
```

## Response excerpt

```json
{
  "id": "10000000-0000-4000-8000-000000000004",
  "status": "approved"
}
```

Source: /docs/decide
Full schemas: /docs/openapi.json
