Log an activity
method_create_activityWRITE: logs an activity (call, email, to-do, note) on a customer/lead. entity_id is the Customer RecordID; contact_id is the Contact RecordID (not the Customer's; method_list_contacts finds it). The text goes in Comments. Prefer activity_type_id (read it from an existing activity of that type) over the caption activity_type: a caption that matches zero or several options is silently dropped. Method requires an assignee on standard accounts. The reply re-reads the activity so you can check the links were stored (field names are account-specific; method_get_table_fields with table Activity shows them). It does not email anyone. Not idempotent. POST /api/v1/tables/Activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | No | Due/start time, YYYY-MM-DDTHH:mm:ss. | |
| comments | Yes | The note body. | |
| entity_id | Yes | The Customer (entity) RecordID the activity belongs to, so it shows in its history. | |
| status_id | No | ActivityStatus_RecordID (account-defined, e.g. Not Started / Completed). | |
| contact_id | No | The Contact RecordID. | |
| activity_type | No | Activity type caption, e.g. Call. Use only if you have no id. | |
| assigned_to_id | No | Method user id of the owner (method_get_account). | |
| activity_type_id | No | ActivityType_RecordID from an existing activity of the wanted type. |