Tasks

Answer an assigned review task

Answer an assigned review task

Required scopes: tasks:write

Uses the same response functions as the dashboard. Application reviews accept approve (moves to Candidates), reject, hold, or ask_recruiter. Scorecard reviews accept thumbs_up, thumbs_down, or note_to_recruiter. Recruiter-note responses require a nonempty note. Only the assigned reviewer with active organization membership may answer an open review. Closed reviews return 409; unsupported task kinds or answers return 400; an unassigned reviewer receives 403.

Example (curl):

curl https://api.yardstick.team/v1/tasks/tsk_abc123/actions/respond -X POST -H 'Authorization: Bearer ys_sk_live_…' -H 'Content-Type: application/json' -d '{"decision":"approve"}'

Example (TypeScript):

await fetch("https://api.yardstick.team/v1/tasks/tsk_abc123/actions/respond", { method: "POST", headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ decision: "approve" }) });
post/v1/tasks/{task_id}/actions/respond

Request

  • Base URL: https://api.yardstick.team
  • URL: https://api.yardstick.team/v1/tasks/{task_id}/actions/respond
  • Auth: HTTP bearer

Path parameters

task_idstring required

Headers

Idempotency-Keystring

Supported for safe retry. Reuse the same key to receive the cached response without repeating the operation.

X-Request-Idstring

Optional caller-supplied request identifier. Values must match ^[A-Za-z0-9_-]{1,128}$; a valid value is echoed in the response X-Request-Id header, otherwise the API generates one.

Request body

decision'approve' | 'reject' | 'hold' | 'ask_recruiter' | 'thumbs_up' | 'thumbs_down' | 'note_to_recruiter' required
notestring

Response

Success

object required

Changes

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