Deactivate a campaign

post

/api/rest/2.0/assets/campaign/draft/{id}

Deactivates a campaign specified by the id parameter.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : Campaign
Type: object
Title: Campaign
Show Source
Nested Schema : elements
Type: array
A list of campaign elements.
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the contactFields associated with a given contact. For campaigns, "fieldValues" include all custom campaign fields (type, id, value).
Show Source
Nested Schema : permissions
Type: array
The permissions for the campaign granted to your current instance. This is a read-only property.
Show Source
Nested Schema : CampaignElement
Type: object
Title: CampaignElement
Show Source
Nested Schema : outputTerminals
Type: array
A list of the campaign element ids within the campaign. This is a read-only property.
Show Source
Nested Schema : permissions
Type: array
The permissions for the campaign element granted to your current instance. This is a read-only property.
Show Source
Nested Schema : Position
Type: object
Title: Position
Show Source
  • The campaign element's type. This is a read-only property.
  • The position of the campaign element on the x axis.
  • The position of the campaign element on the y axis.
Nested Schema : CampaignOutputTerminal
Type: object
Title: CampaignOutputTerminal
Show Source
Nested Schema : permissions
Type: array
The permissions for the campaign output terminal granted to your current instance.
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
  • Read Only: true
    The id of the field to be set to the corresponding value.
  • Name of the field value.
  • The asset's type in Eloqua. This is a read-only property.
  • The value to set the corresponding field id to. Date values must be submitted as a unix timestamp.

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Deactivate a campaign with Id #23 immediately:


POST /api/REST/2.0/assets/campaign/draft/23
Content-Type: application/json 
			

Response:


{
    "type": "Campaign",
    "currentStatus": "Draft",
    "id": "50",
    "createdAt": "1468610484",
    "createdBy": "9",
    "depth": "minimal",
    "folderId": "1263",
    "name": "New and Improved",
    "permissions": [
        "Retrieve",
        "SetSecurity",
        "Delete",
        "Update",
        "Activate"
    ],
    "updatedAt": "1468611166",
    "updatedBy": "9",
    "campaignCategory": "contact",
    "endAt": "1476590399",
    "isEmailMarketingCampaign": "false",
    "memberCount": "21",
    "startAt": "1468555200"
}
			
Back to Top