Developer docs · Problems

Confirmation pending

HTTP 409 · https://impartire.com/problems/confirmation-pending

What it means

The same action, on the same resource with the same parameters, is already waiting for its person to confirm it in impartire; confirmation_id and confirm_url name it. Poll GET /api/v1/confirmations/{id} instead of asking again.

What to do

Do not ask again: the person has not decided yet. Show them confirm_url, then poll GET /api/v1/confirmations/{confirmation_id} until its status is executed, declined or expired.

Example

Sent as application/problem+json with status 409. detail varies with the request; branch on type.

{
  "type": "https://impartire.com/problems/confirmation-pending",
  "title": "Confirmation pending",
  "status": 409,
  "detail": "This action is already waiting for its person to confirm it (confirmation 2b7e4c1a-9d3f-4e8b-a6c5-1f0e9d8c7b6a). Send them its confirm_url and poll it; do not ask again.",
  "instance": "/api/v1/runs/0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a/signals",
  "request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M",
  "confirmation_id": "2b7e4c1a-9d3f-4e8b-a6c5-1f0e9d8c7b6a",
  "confirm_url": "https://impartire.com/settings/confirmations/2b7e4c1a-9d3f-4e8b-a6c5-1f0e9d8c7b6a"
}