Back to MarketoAdd Custom Activities
Allows insertion of custom activities associated to given lead records. Requires provisioning of custom activity types to utilize. Required Permissions: Read-Write Activity
Input
type: object
properties:
data:
required:
- input
type: object
properties:
input:
type: array
description: List of custom activities to insert
items:
required:
- activityDate
- activityTypeId
- attributes
- errors
- id
- leadId
- primaryAttributeValue
type: object
properties:
activityDate:
type: string
description: Datetime of the activity
activityTypeId:
type: integer
description: Id of the activity type
format: int32
apiName:
type: string
attributes:
type: array
description: List of secondary attributes
items:
required:
- name
- value
type: object
description: Name-Value pair
properties:
apiName:
type: string
name:
type: string
description: Name of the attribute
value:
type: object
description: Value of the attribute
errors:
type: array
description: Array of errors that occurred if the request was unsuccessful
items:
required:
- code
- message
type: object
properties:
code:
type: string
description: >-
Error code of the error. See full list of error codes <a
href="https://developers.marketo.com/rest-api/error-codes/">here</a>
message:
type: string
description: Message describing the cause of the error
id:
type: integer
description: >-
Integer id of the activity. For instances which have been
migrated to Activity Service, this field may not be present, and
should not be treated as unique.
format: int64
leadId:
type: integer
description: Id of the lead associated to the activity
format: int64
marketoGUID:
type: string
description: Unique id of the activity (128 character string)
primaryAttributeValue:
type: string
description: Value of the primary attribute
status:
type: string
description: Status of the operation performed on the record
enum:
- created
- updated
- deleted
- skipped
- added
- removed
title: Data
Output
required:
- errors
- requestId
- result
- success
- warnings
type: object
properties:
errors:
type: array
description: Array of errors that occurred if the request was unsuccessful
items:
required:
- code
- message
type: object
properties:
code:
type: string
description: >-
Error code of the error. See full list of error codes <a
href="https://developers.marketo.com/rest-api/error-codes/">here</a>
message:
type: string
description: Message describing the cause of the error
moreResult:
type: boolean
description: Boolean indicating if there are more results in subsequent pages
example: false
nextPageToken:
type: string
description: Paging token given if the result set exceeded the allowed batch size
requestId:
type: string
description: Id of the request made
result:
type: array
description: Array of results for individual records in the operation, may be empty
items:
required:
- activityDate
- activityTypeId
- attributes
- errors
- id
- leadId
- primaryAttributeValue
type: object
properties:
activityDate:
type: string
description: Datetime of the activity
activityTypeId:
type: integer
description: Id of the activity type
format: int32
apiName:
type: string
attributes:
type: array
description: List of secondary attributes
items:
required:
- name
- value
type: object
description: Name-Value pair
properties:
apiName:
type: string
name:
type: string
description: Name of the attribute
value:
type: object
description: Value of the attribute
errors:
type: array
description: Array of errors that occurred if the request was unsuccessful
items:
required:
- code
- message
type: object
properties:
code:
type: string
description: >-
Error code of the error. See full list of error codes <a
href="https://developers.marketo.com/rest-api/error-codes/">here</a>
message:
type: string
description: Message describing the cause of the error
id:
type: integer
description: >-
Integer id of the activity. For instances which have been migrated
to Activity Service, this field may not be present, and should not
be treated as unique.
format: int64
leadId:
type: integer
description: Id of the lead associated to the activity
format: int64
marketoGUID:
type: string
description: Unique id of the activity (128 character string)
primaryAttributeValue:
type: string
description: Value of the primary attribute
status:
type: string
description: Status of the operation performed on the record
enum:
- created
- updated
- deleted
- skipped
- added
- removed
success:
type: boolean
description: Whether the request succeeded
example: false
warnings:
type: array
description: Array of warnings given for the operation
items:
required:
- code
- message
type: object
properties:
code:
type: integer
description: Integer code of the warning
format: int32
message:
type: string
description: Message describing the warning