update_outreach_status
Mark outreach as sent or failed, transitioning from pre_send. Sent flips the prospect to contacted and reserves quota; failed refunds the in-flight quota reservation.
Instructions
Resolve the "pre_send" outreach log row from record_outreach_with_inquiry. Both terminal transitions stamp next_outreach_after = sentAt + noResponseRecycleDays, dropping the prospect from get_outbound_targets for that window: status="sent" also flips the prospect to "contacted", confirms quota consumption, and advances the follow-up sequence; status="failed" refunds the in-flight quota reservation. Only the "pre_send" → terminal transition is accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | "sent" = submit succeeded; "failed" = submit failed. | |
| errorMessage | No | Required when status="failed". | |
| outreachLogId | Yes | outreachLogs.id from record_outreach_with_inquiry. |