Update a campaign

PUT/martech/{connection_id}/campaign/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Campaign

Payload

idstring
Unique identifier for the campaign
created_atdate
When the campaign was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
When the campaign was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
Campaign nametitle
typestring
Campaign type (e.g., regular, automation, ab_test)
status enum
Valid values:
"DRAFT"
"SCHEDULED"
"SENDING"
"SENT"
"CANCELLED"
Campaign status
list_idsstring array
Associated listaudience IDs
subject_linestring
Email subject line
preview_textstring
Email preview text
from_namestring
Sender name
from_emailstring
Sender email address
reply_to_emailstring
Reply-to email address
send_atdate
Scheduled send time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

Returns

idstring
Unique identifier for the campaign
created_atdate
When the campaign was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
When the campaign was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
Campaign nametitle
typestring
Campaign type (e.g., regular, automation, ab_test)
status enum
Valid values:
"DRAFT"
"SCHEDULED"
"SENDING"
"SENT"
"CANCELLED"
Campaign status
list_idsstring array
Associated listaudience IDs
subject_linestring
Email subject line
preview_textstring
Email preview text
from_namestring
Sender name
from_emailstring
Sender email address
reply_to_emailstring
Reply-to email address
send_atdate
Scheduled send time (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
const options = {
  method: 'PUT',
  url: 'https://api.unified.to/martech/5de520f96e439b002043d8dc/campaign/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?