Loading…
Loading…
CRM API · write, waits for approval · 100% field coverage
Your agent can update activity in HubSpot through Apideck's CRM API, the same call it makes for every CRM app. It changes data in the customer's HubSpot account, so it stops with the exact request until a person approves it. Apideck adds the customer's HubSpot credentials, so no token ever reaches the agent.
PATCH https://unify.apideck.com/crm/activities/{id}
Headers: x-apideck-service-id: hubspot, plus your app id and the customer's consumer id. Apideck MCP tool: crm-activities-update. Agent operation id: unified.crm.activitiesUpdate.
| Parameter | In | Description |
|---|---|---|
| id · required | path | ID of the record you are acting upon. |
| Field | Type | Description |
|---|---|---|
| activity_datetime | string | The date and time of the activity |
| duration_seconds | integer | The duration of the activity in seconds |
| user_id | string | The user related to the activity |
| account_id | string | The account related to the activity |
| contact_id | string | The contact related to the activity |
| company_id | string | The company related to the activity |
| opportunity_id | string | The opportunity related to the activity |
| lead_id | string | The lead related to the activity |
| owner_id | string | The owner of the activity |
| campaign_id | string | The campaign related to the activity |
| case_id | string | The case related to the activity |
| asset_id | string | The asset related to the activity |
| contract_id | string | The contract related to the activity |
| product_id | string | The product related to the activity |
| solution_id | string | The solution related to the activity |
| custom_object_id | string | The custom object related to the activity |
| type · required | string | The type of the activity |
| title | string | The title of the activity |
| description | string | A description of the activity |
| note | string | An internal note about the activity |
| location | string | The location of the activity |
| location_address | object | |
| all_day_event | boolean | Whether the Activity is an all day event or not |
| private | boolean | Whether the Activity is private or not |
| group_event | boolean | Whether the Activity is a group event or not |
| event_sub_type | string | The sub type of the group event |
| group_event_type | string | The type of the group event |
| child | boolean | Whether the activity is a child of another activity or not |
| archived | boolean | Whether the activity is archived or not |
| deleted | boolean | Whether the activity is deleted or not |
| show_as | string | |
| done | boolean | Whether the Activity is done or not |
| start_datetime | string | The start date and time of the activity |
| end_datetime | string | The end date and time of the activity |
| activity_date | string | The date of the activity |
| end_date | string | The end date of the activity |
| recurrent | boolean | Whether the activity is recurrent or not |
| reminder_datetime | string | The date and time of the reminder |
| reminder_set | boolean | Whether the reminder is set or not |
| video_conference_url | string | The URL of the video conference |
| video_conference_id | string | The ID of the video conference |
| custom_fields | array | Custom fields of the activity |
| attendees | array |
The same call works for each of these; only the service id changes.
ActMicrosoft Dynamics CRMOdooPipedrivePlanhatSalesforceZoho CRM