Save Referral Contact
save_referralAdd a referral contact or edit an existing one to store a company, careers page, and contact details. Updates only change passed fields while preserving the rest.
Instructions
Add a referral contact, or edit one when referral_id is given (list_referrals has the ids). A referral is a company the user can apply to with someone's referral: its careers page, the contact's name and notes. A new referral needs company and careers_url (an http or https address); contact_name and notes are optional, and each call without referral_id adds another referral. An edit changes only the fields passed, and company is optional there: a field left out keeps its saved value, and a field passed replaces it (referrals keep no history of earlier values). An unknown referral_id is a 404 and nothing is written. Returns the saved referral {id, company, careers_url, contact_name, notes, applications_count, created_at, updated_at}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| company | No | ||
| careers_url | No | ||
| referral_id | No | ||
| contact_name | No |