onboarding

Report a failed repository adoption so the waiting browser can show the failure.

The CLI calls this endpoint when its local push fails. Only an exchanging session matching the authenticated API-key row id, workspace, and user is marked failed. Cookie sessions are rejected. Repeated reports, unmatched sessions, and sessions already completed are acknowledged without changing their state, so a completion that wins the race is preserved.

post/api/v1/onboarding/repo/fail

Request body

sessionIdstring required

The session returned by the code exchange.

Response

Failure recorded, or no matching exchanging session remains; returns ok:true.

object required

Changes

Changed in 1 of the 14 revisions of this API.1