| Requires any of the roles: | Client, Admin, Partner |
| PUT | /campaign/actions/files | Set Campaign Action Files |
|---|
"use strict";
export class CampaignActionFile {
/** @param {{Name?:string,FileType?:string,FileSize?:string,Extension?:string,UploadUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
FileType;
/** @type {string} */
FileSize;
/** @type {string} */
Extension;
/** @type {string} */
UploadUrl;
}
export class SetCampaignActionFiles {
/** @param {{CampaignsId?:number,CampaignActionsId?:number,Files?:CampaignActionFile[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CampaignsId;
/** @type {number} */
CampaignActionsId;
/** @type {CampaignActionFile[]} */
Files;
}
JavaScript SetCampaignActionFiles DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /campaign/actions/files HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CampaignsId: 0,
CampaignActionsId: 0,
Files:
[
{
Name: String,
FileType: String,
FileSize: String,
Extension: String,
UploadUrl: String
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length False