Create a new Custom Activity instance

View as Markdown

Custom Activity instances will be created by default with the ‘published’ status. All required fields will be validated in this status. To create an activity without setting all required fields, you can use the “draft” status.

A Custom Activity can be pinned or unpinned by setting the pinned field to true or false when creating or updating a Custom Activity.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:)>.

OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
custom_activity_type_idstringRequired
lead_idstringRequired
activity_atdatetime or nullOptional
contact_idstring or nullOptional
created_by_idstring or nullOptional
custom_fieldsmap from strings to any or nullOptional
date_createddatetime or nullOptional
organization_idstring or nullOptional
pinnedboolean or nullOptional
statusenumOptional
Allowed values:
user_idstring or nullOptional

Response

Successful response

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error