ScheduleDto
name
stringExample:
Untitled new campaign
repeatAfter
stringid
stringparentId
stringchildCount
numbercampaignType
stringbulkActionVersion
string_id
stringstatus
stringsendDays
array[string]deleted
booleanmigrated
booleanarchived
booleanhasTracking
booleanisPlainText
booleanhasUtmTracking
booleanenableResendToUnopened
booleanlocationId
stringtemplateId
stringtemplateType
stringcreatedAt
stringupdatedAt
string__v
numberdocumentId
stringdownloadUrl
stringtemplateDataDownloadUrl
stringchild
array[string]
Example
{
"name": "Untitled new campaign",
"repeatAfter": "string",
"id": "string",
"parentId": "string",
"childCount": 0,
"campaignType": "string",
"bulkActionVersion": "string",
"_id": "string",
"status": "string",
"sendDays": [
"string"
],
"deleted": true,
"migrated": true,
"archived": true,
"hasTracking": true,
"isPlainText": true,
"hasUtmTracking": true,
"enableResendToUnopened": true,
"locationId": "string",
"templateId": "string",
"templateType": "string",
"createdAt": "string",
"updatedAt": "string",
"__v": 0,
"documentId": "string",
"downloadUrl": "string",
"templateDataDownloadUrl": "string",
"child": [
"string"
]
}
ScheduleFetchSuccessfulDTO
schedules
array[object]The list of campaigns
name
stringExample:
Untitled new campaign
repeatAfter
stringid
stringparentId
stringchildCount
numbercampaignType
stringbulkActionVersion
string_id
stringstatus
stringsendDays
array[string]deleted
booleanmigrated
booleanarchived
booleanhasTracking
booleanisPlainText
booleanhasUtmTracking
booleanenableResendToUnopened
booleanlocationId
stringtemplateId
stringtemplateType
stringcreatedAt
stringupdatedAt
string__v
numberdocumentId
stringdownloadUrl
stringtemplateDataDownloadUrl
stringchild
array[string]total
array[string]The total number of campaigns
traceId
stringTrace Id
Example
{
"schedules": [
{
"name": "Untitled new campaign",
"repeatAfter": "string",
"id": "string",
"parentId": "string",
"childCount": 0,
"campaignType": "string",
"bulkActionVersion": "string",
"_id": "string",
"status": "string",
"sendDays": [
null
],
"deleted": true,
"migrated": true,
"archived": true,
"hasTracking": true,
"isPlainText": true,
"hasUtmTracking": true,
"enableResendToUnopened": true,
"locationId": "string",
"templateId": "string",
"templateType": "string",
"createdAt": "string",
"updatedAt": "string",
"__v": 0,
"documentId": "string",
"downloadUrl": "string",
"templateDataDownloadUrl": "string",
"child": [
null
]
}
],
"total": [
"string"
],
"traceId": "string"
}
BadRequestDTO
statusCode
numberExample:
400
message
stringExample:
Bad Request
Example
{
"statusCode": 400,
"message": "Bad Request"
}
UnauthorizedDTO
statusCode
numberExample:
401
message
stringExample:
Invalid token: access token is invalid
error
stringExample:
Unauthorized
Example
{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}
InvalidLocationDTO
statusCode
numberExample:
403
message
stringExample:
The token does not have access to this location
Example
{
"statusCode": 403,
"message": "The token does not have access to this location"
}
NotFoundDTO
statusCode
numberExample:
404
message
stringExample:
Not Found
error
stringExample:
The requested resource was not found
Example
{
"statusCode": 404,
"message": "Not Found",
"error": "The requested resource was not found"
}
UnprocessableDTO
statusCode
numberExample:
422
message
array[string]Example:
["Unprocessable Entity"]
error
stringExample:
Unprocessable Entity
Example
{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}
CreateBuilderDto
locationId
stringExample:
ve9EPM428h8vShlRW1KT
title
stringExample:
template title
type
stringAllowed values:
htmlfolderimportbuilderblank
updatedBy
stringExample:
zYy3YOUuHxgomU1uYJty
builderVersion
stringAllowed values:
12
Default:
2
name
stringExample:
Template1
parentId
stringExample:
zYy3YOUuHxgomU1uYJty
templateDataUrl
stringExample:
importProvider
stringAllowed values:
mailchimpactive_campaignkajabi
importURL
stringExample:
https://tplshare.com/fhYJ3Mi
templateSource
stringExample:
template_library
isPlainText
booleanExample:
false
Example
{
"locationId": "ve9EPM428h8vShlRW1KT",
"title": "template title",
"type": "html",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"builderVersion": "2",
"name": "Template1",
"parentId": "zYy3YOUuHxgomU1uYJty",
"templateDataUrl": "",
"importProvider": "mailchimp",
"importURL": "https://tplshare.com/fhYJ3Mi",
"templateSource": "template_library",
"isPlainText": false
}
CreateBuilderSuccesfulResponseDto
redirect
stringtemplate id
Example:
66e811229245fc098765590
traceId
stringtrace id
Example:
0c52e980-41f6-4be7-8c4b-e2c5a13dc3c2
Example
{
"redirect": "66e811229245fc098765590",
"traceId": "0c52e980-41f6-4be7-8c4b-e2c5a13dc3c2"
}
FetchBuilderSuccesfulResponseDto
name
stringtemplate name
Example:
New Template
updatedBy
stringupdated by
Example:
John Doe
isPlainText
booleanplain text based template
Example:
false
lastUpdated
stringlast updated
Example:
2024-11-12T12:34:36.070Z
dateAdded
stringdate added
Example:
2024-11-12T12:34:36.070Z
previewUrl
stringpreview url
Example:
https://example.com
id
stringid
Example:
67334b231f2fad724062f52b5
version
stringversion
Example:
1
templateType
stringtype
Example:
builder
Example
{
"name": "New Template",
"updatedBy": "John Doe",
"isPlainText": "false",
"lastUpdated": "2024-11-12T12:34:36.070Z",
"dateAdded": "2024-11-12T12:34:36.070Z",
"previewUrl": "https://example.com",
"id": "67334b231f2fad724062f52b5",
"version": "1",
"templateType": "builder"
}
DeleteBuilderSuccesfulResponseDto
ok
stringok
Example:
true
traceId
stringtrace id
Example:
0c52e980-41f6-4be7-8c4b-32332ss
Example
{
"ok": "true",
"traceId": "0c52e980-41f6-4be7-8c4b-32332ss"
}
IBuilderJsonMapper
elements
array[string]attrs
objecttemplateSettings
object
Example
{
"elements": [
"string"
],
"attrs": {},
"templateSettings": {}
}
SaveBuilderDataDto
locationId
stringExample:
ve9EPM428h8vShlRW1KT
templateId
stringExample:
zYy3YOUuHxgomU1uYJty
updatedBy
stringExample:
zYy3YOUuHxgomU1uYJty
dnd
objectExample:
{elements:[], attrs:{}, templateSettings:{}}
elements
array[string]attrs
objecttemplateSettings
objecthtml
stringExample:
editorType
stringAllowed values:
htmlbuilder
previewText
stringExample:
zYy3YOUuHxgomU1uYJty
isPlainText
booleanExample:
false
Example
{
"locationId": "ve9EPM428h8vShlRW1KT",
"templateId": "zYy3YOUuHxgomU1uYJty",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"dnd": {
"0": "{",
"1": "e",
"2": "l",
"3": "e",
"4": "m",
"5": "e",
"6": "n",
"7": "t",
"8": "s",
"9": ":",
"10": "[",
"11": "]",
"12": ",",
"13": " ",
"14": "a",
"15": "t",
"16": "t",
"17": "r",
"18": "s",
"19": ":",
"20": "{",
"21": "}",
"22": ",",
"23": " ",
"24": "t",
"25": "e",
"26": "m",
"27": "p",
"28": "l",
"29": "a",
"30": "t",
"31": "e",
"32": "S",
"33": "e",
"34": "t",
"35": "t",
"36": "i",
"37": "n",
"38": "g",
"39": "s",
"40": ":",
"41": "{",
"42": "}",
"43": "}",
"elements": [
"string"
],
"attrs": {},
"templateSettings": {}
},
"html": "",
"editorType": "html",
"previewText": "zYy3YOUuHxgomU1uYJty",
"isPlainText": "false"
}
BuilderUpdateSuccessfulDTO
ok
stringok
Example:
true
traceId
stringtrace id
Example:
0c52e980-41f6-4be7-8c4b-32332ss
previewUrl
stringpreview url
Example:
https://example.com
templateDownloadUrl
stringtemplate data download url
Example:
https://example.com
Example
{
"ok": "true",
"traceId": "0c52e980-41f6-4be7-8c4b-32332ss",
"previewUrl": "https://example.com",
"templateDownloadUrl": "https://example.com"
}