Update a Campaign's Proof List

put

/rest/api/v1.3/campaigns/{campaignName}/attributes/proofList

Updates the Proof List associated with a Campaign

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Campaign Proof List Request
Type: object
Title: Campaign Proof List Request
Show Source
Nested Schema : attributeData
Type: object
Describes the attribute of the campaign to be updated
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Campaign Proof List Response
Type: object
Title: Campaign Proof List Response
Show Source
Nested Schema : Proof List
Type: object
Title: Proof List
Show Source
Back to Top

Examples

Use this interface to update the proof list associated with the specified campaign. The response returns the proof list object, which includes the proof list name and the list's other properties. The links array contains the proof list's object's related API operations, specific to the campaign name.

Required request headers:

FIELDS DESCRIPTION
Authorization <AUTH_TOKEN>
Content-Type application/json

Sample Request URL

/rest/api/v1.3/campaigns/example_campaign/attributes/proofList

Sample Request Body

{
  "attributeName": "proofList",
  "attributeData": {
    "name": "myprooflist"
  }
}

Response Notes:

Sample Response Body

{
  "attributeName": "proofList",
  "attributeData": {
    "name": "testproofList",
    "description": "Proof List Description",
    "listName": "testlist",
    "folderName": "~System",
    "createdBy": "api.user",
    "createdDate": "2020-07-28",
    "modifiedBy": "api.user",
    "modifiedDate": "2020-07-28"
  },
  "links": [
    {
      "rel": "self",
      "href": "/rest/api/v1.3/campaigns/mycampaign/attributes/proofList",
      "method": "PUT"
    },
    {
      "rel": "getCampaignAttribute",
      "href": "/rest/api/v1.3/campaigns/mycampaign/attributes/proofList",
      "method": "GET"
    }
  ]
}
	

Troubleshooting Failures

The system returns error responses in the following situations.

Invalid character specified for campaign name: A 400 bad request error is returned with the following error response body (where the table name sent is returned in the square brackets):

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Invalid characters in the Campaign name: Example.Campaign",
  "errorDetails": []
}
	

Campaign does not exist: A 404 not found error is returned with the following error response body (where the campaign name sent is returned in the square brackets):

{
  "type": "",
  "title": "Campaign not found",
  "errorCode": "CAMPAIGN_NOT_FOUND",
  "detail": "[ Example.Campaign ] Campaign Not Found",
  "errorDetails": []
}
	

Invalid attribute name: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Invalid attribute name :filter",
  "errorDetails": []
}
	

Campaign name exceeds character limit: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Maximum characters allowed for Campaign name: SourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCampaignSourceCamp2 is 150",
  "errorDetails": []
}

	

User does not have permissions to access the campaign: A 401 unauthorized error is returned with the following error response body:

{
  "type": "",
  "title": "Insufficient access",
  "errorCode": "INSUFFICIENT_ACCESS",
  "detail": "User api.user does not have access to campaign [Example_Campaign]",
  "errorDetails": []
}
	

User does not have the campaign web services manager role: A 401 unauthorized error is returned with the following error response body:

{
  "type": "",
  "title": "Insufficient access",
  "errorCode": "INSUFFICIENT_ACCESS",
  "detail": "Insufficient privileges to invoke this API",
  "errorDetails": []
}
	

Proof list name contains invalid character: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Invalid characters in the ProofList Name",
  "errorDetails": []
}
	

Proof list name exceeds 100 characters: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Max Length of proofListName allowed: 100",
  "errorDetails": []
}
	

Attribute name specified in the request URL is not proofList: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Invalid request parameters",
  "errorCode": "INVALID_PARAMETER",
  "detail": "Invalid attribute name :test",
  "errorDetails": []
}
	

The proof list specified either does not exist, or the list is not set to the campaign: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Proof list not found",
  "errorCode": "PROOF_LIST_NOT_FOUND",
  "detail": "ProofList [ proof_list1 ] not found for Profile list set for Campaign: [ Example_Campaign]",
  "errorDetails": []
}
	

The profile list not set to the campaign: A 400 bad request error is returned with the following error response body:

{
  "type": "",
  "title": "Proof list not found",
  "errorCode": "PROOF_LIST_NOT_FOUND",
  "detail": "ProofList [ proof_list1 ] not found for Profile list set for Campaign: [ Example_Campaign]",
  "errorDetails": []
}
	
Back to Top