Campaign Channel
The campaign channel record exposes a campaign channel to REST web services.
This record:
-
is not a subrecord
-
contains one subrecord: eventType
For more information about working with campaign channels in the UI, see Campaign Channels.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for a campaign channel record is campaignchannel.
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.
Additional Details
When working with the campaign channel record, the eventType field can't be updated.
Code Samples
The following samples show common actions for a campaign channel.
POST Request
POST /services/rest/record/v1/campaignchannel HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Content-Type: application/json
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""
Content-Length: 137
{
"description": "Test description",
"name": "Test name",
"isInactive": false,
"eventType":
{
"id": "DIRECTMAIL"
}
}
GET Request
GET /services/rest/record/v1/campaignchannel/1?expandSubResources=true HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""
PATCH Request
PATCH /services/rest/record/v1/campaignchannel/1 HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Content-Type: application/json
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""
Content-Length: 105
{
"description": "Test description updated",
"name": "Test name updated",
"isInactive": true
}
DELETE Request
DELETE /services/rest/record/v1/campaignchannel/1 HTTP/1.1
Host: 3619616.suitetalk.api.netsuite.com
Authorization: OAuth realm="3619616",oauth_consumer_key="",oauth_token="",oauth_signature_method="",oauth_timestamp="",oauth_nonce="",oauth_version="1.0",oauth_signature=""