Input and Output of Upsert Campaigns

When you use the Campaigns resource, the information in the Input and Output tabs varies depending on the endpoint that you select.

Input and Output for Schedule Campaign

If you select the Schedule Campaign endpoint, the Input tab contains the following elements:
Input Item Data Type Description
id String A Marketo ID of the campaign that you want to run.
runAt DateTime The time to run the scheduled campaign. If not provided, schedule it to run in five minutes.
cloneToProgramName String

When this parameter is present, the parent program of the campaign is cloned and the newly created campaign is scheduled. This parameter specifies the desired name for the resulting program.

Note: Only 20 calls per day are used when this attribute is available.
tokens Complex An array of token names and token value pairs.
The Output tab contains the following elements:
Output Item Data Type Description
requestId String The request ID returned from the Marketo server.
result Complex The fields that are displayed in the response. The following fields are displayed: id, status, and reasons.
success Boolean If the request is successful, this value is true.

Input and Output for Request Campaign

If you select the Request Campaign endpoint, the Input tab contains the following elements:
Input Item Data Type Description
id String A Marketo ID of the campaign that you want to run.
leads Complex A list of lead IDs of an integer data type.
tokens Complex An array of token names and token value pairs.
The Output tab contains the following elements:
Output item Data Type Description
requestId String The request ID returned from the Marketo server.
result Complex The fields that are displayed in the response. The following fields are displayed: id, status, and reasons.
success Boolean If the request is successful, this value is true.