rfctl activities create#
Create a new activity.
Synopsis#
rfctl activities create [flags]Flags#
| Flag | Type | Required | Description |
|---|---|---|---|
--org | int | Yes | Organization ID |
--user | int | Yes | User ID (who performed the activity) |
--type | string | Yes | Activity type (call, email, meeting, note) |
--subject | string | No | Activity subject |
--body | string | No | Activity body/notes |
--contact | int | No | Contact ID |
--deal | int | No | Deal ID |
--occurred-at | string | No | When the activity occurred (RFC3339 format) |
Examples#
Create a simple call#
rfctl activities create --org 1 --user 1 --type call --subject "Follow-up call"Create with all fields#
rfctl activities create \
--org 1 \
--user 1 \
--type meeting \
--subject "Product demo" \
--body "Demonstrated key features. Customer interested in enterprise tier." \
--contact 1 \
--deal 1 \
--occurred-at "2024-01-15T14:00:00Z"Output#
Returns JSON with the created activity:
{
"id": 1,
"type": "meeting",
"subject": "Product demo",
"body": "Demonstrated key features...",
"organization_id": 1,
"user_id": 1,
"contact_id": 1,
"deal_id": 1,
"created_at": "2024-01-15T14:30:00Z"
}Errors#
Error: --org is required
Error: --user is required
Error: --type is required
Error: Organization, user, contact, or deal not found