rfctl contacts create#

Create a new contact for an organization.

Synopsis#

rfctl contacts create [flags]

Flags#

FlagTypeRequiredDescription
--orgintYesOrganization ID
--first-namestringYesFirst name
--last-namestringYesLast name
--emailstringNoEmail address
--phonestringNoPhone number
--job-titlestringNoJob title
--primaryboolNoSet as primary contact

Examples#

Create minimal contact#

rfctl contacts create --org 1 --first-name "John" --last-name "Doe"

Create with all fields#

rfctl contacts create \
  --org 1 \
  --first-name "John" \
  --last-name "Doe" \
  --email "john.doe@acme.com" \
  --phone "+1-555-0123" \
  --job-title "CTO" \
  --primary

Output#

Returns JSON with the created contact:

{
  "id": 1,
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@acme.com",
  "phone": "+1-555-0123",
  "job_title": "CTO",
  "is_primary": true,
  "organization_id": 1,
  "created_at": "2024-01-15T10:30:00Z"
}

Errors#

Error: --org is required
Error: --first-name is required
Error: --last-name is required
Organization not found: 1