Documentation · API reference
POST/api/v1/sites/{site}/requests/{id}/finish

Do what a request asks: hand over the copy, or delete

Do what a request asks: hand over the copy, or delete.

Parameters

sitein the address
neededA site's id or name
idin the address
neededThe request

What to send

RequestDone

confirm
stringFor a deletion: the visitor's ID, typed.
outcome
stringFor closing without doing: why.

The answer

Status 200

RequestView

asked
integerneeded
asked_how
stringneeded
days_left
integerneededDays left to answer; negative when it is late.
deadline
integerneeded
done
integer or null
id
stringneeded
kind
stringneeded`copy` or `deletion`.
label
stringneeded
log
list of LogLineViewneeded
number
stringneeded`R-0031`.
outcome
stringneeded
state
stringneeded`open`, `done` or `closed`.
subject
stringneeded
visitor
string or nullThe visitor it is about, while they are held.
will_delete
string or nullFor an open deletion: what will go and what will stay.

Asking

With your token from Settings
curl -X POST https://tidekeeper.eu/api/v1/sites/example.org/requests/{id}/finish \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{}'
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/requests/{id}/finish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
}).then((r) => r.json());