rfctl contacts update#
Update an existing contact.
Synopsis#
rfctl contacts update <id> [flags]Arguments#
| Argument | Description |
|---|---|
id | The contact ID (required) |
Flags#
| Flag | Type | Description |
|---|---|---|
--first-name | string | First name |
--last-name | string | Last name |
--email | string | Email address |
--phone | string | Phone number |
--job-title | string | Job title |
--primary | bool | Set as primary contact |
All flags are optional. Only specified fields will be updated.
Examples#
# Update email
rfctl contacts update 1 --email "newemail@acme.com"
# Set as primary contact
rfctl contacts update 1 --primaryOutput#
Returns JSON with the updated contact:
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"email": "newemail@acme.com",
"is_primary": true,
"updated_at": "2024-01-20T14:45:00Z"
}