rfctl contacts create#
Create a new contact for an organization.
Synopsis#
rfctl contacts create [flags]Flags#
| Flag | Type | Required | Description |
|---|---|---|---|
--org | int | Yes | Organization ID |
--first-name | string | Yes | First name |
--last-name | string | Yes | Last name |
--email | string | No | Email address |
--phone | string | No | Phone number |
--job-title | string | No | Job title |
--primary | bool | No | Set 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" \
--primaryOutput#
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