rfctl activities create#

Create a new activity.

Synopsis#

rfctl activities create [flags]

Flags#

FlagTypeRequiredDescription
--orgintYesOrganization ID
--userintYesUser ID (who performed the activity)
--typestringYesActivity type (call, email, meeting, note)
--subjectstringNoActivity subject
--bodystringNoActivity body/notes
--contactintNoContact ID
--dealintNoDeal ID
--occurred-atstringNoWhen 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