Campaign Response
The campaign response record exposes a campaign response to REST web services.
This record:
-
is not a subrecord
-
contains one subrecord: responses
For more information about working with campaign response records in the UI, see Tracking Campaign Responses.
The REST API Browser includes information about the field names and field types of the campaign respone record. It also includes the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s campaign response reference page.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for a campaign response REST record is campaignResponse.
Prerequisites
You must enable the Marketing Automation feature before you can use this record through REST web services. For more information, see Marketing Automation Overview.
Code Sample
The following sample shows a common action for a campaign response.
Get Campaign Response
GET <domain>/record/v1/campaignResponse/<ID>
Create a Campaign Response
POST: /record/v1/campaignresponse
{
"entity": {"id": 291},
"leadSource": {"id": 25},
"campaignEvent": {"id": 17},
"response": {"id": "RESPONDED"}
}