Extend Invitation
PATCH/api/v1/workspaces/invitations/:invite_id
Extend the expiry of a pending invitation (PRD §4 — Phase 78).
Available to owners and managers. Permits extending an already-expired invitation (recovery path) but blocks extending a used or revoked one. The original invitation token is preserved — no new email is sent; the recipient's existing email link will continue to work until the new expires_at. Validates expires_at strictly in the future and at most 90 days from now. Atomic with select_for_update to prevent race conditions with concurrent revoke.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
OK
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error