| Requires any of the roles: | Client, Admin, Partner |
"use strict";
export class MetaParseUpload {
/** @param {{Data?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Data;
}
export class CSVRequestsArrResponse extends Array {
constructor(init) { super(init); Object.assign(this, init) }
}
class Dictionary {}
export class JsonObject extends Dictionary {
constructor(init) { super(init); Object.assign(this, init) }
}
export class CSVErrors {
/** @param {{type?:string,code?:string,message?:string,row?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
type;
/** @type {string} */
code;
/** @type {string} */
message;
/** @type {string} */
row;
}
export class CSVRequestsArr {
/** @param {{BatchId?:number,Data?:JsonObject,Errors?:CSVErrors[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
BatchId;
/** @type {JsonObject} */
Data;
/** @type {CSVErrors[]} */
Errors;
}
export class Requests extends Array {
constructor(init) { super(init); Object.assign(this, init) }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/Requests HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
[]
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length []