Actions

Reject a pending action

Reject a suspended HITL pending action with a bounded server-validated reason. Same act:approve scope gate as /approve (held back pending legal review). NO government call is ever made on this path; REJECTED is terminal.

post/api/v1/actions/pending/{id}/reject

Request

  • Base URL: https://www.apier.no
  • URL: https://www.apier.no/api/v1/actions/pending/{id}/reject
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Request body

reasonstring required

Bounded server-validated rejection reason. Printable ASCII + Norwegian letters (ÆØÅæøå) only; 1-512 chars. Stored on pending_actions.reject_reason for the compliance trail. The pattern here mirrors the Zod check the route runs BEFORE the DB CHECK fires.

Response

REJECTED — terminal.

successtrue required

Example response

{
  "_meta": {
    "rulebook_version": "v1.0.0",
    "source": "apier.no",
    "data_source": "Brønnøysund Enhetsregisteret + Apier Universal Rulebook",
    "schema_version": "1.0.0",
    "legal_basis": "NLOD — public registry reuse",
    "response_timestamp": "2026-04-24T12:00:00.000Z",
    "response_hash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "source_snapshot_id": "brreg-2026-04-24T02:00:00.000Z",
    "cost_nok": 0.5,
    "wallet_remaining_nok": 9.5,
    "spend_cap_remaining_nok": 12.5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.