getTemplateExportRequestList
- Print
- PDF
getTemplateExportRequestList
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Get template backup (Json) download request list
GET https://{endpoint}/template/export
Request
Request Parameters
Parameter | Required | Type | Limitation | Description |
---|---|---|---|---|
size | No | Integer | Default:10 | Number of records per page |
page | No | Integer | Default:0 | Index of a page to receive results (0..N) |
sort | No | String | Default: createUtc, sid: request sid, createUtc: Creation time, statusCode: request status | Sort by (format: property(,asc|desc)): Messages are sorted in ascending order (asc) by default; multiple fields can be used for sorting |
Response
HTTP status code | Description |
---|---|
200 | Request list lookup complete |
400 | Authentication failed, invalid request. |
500 | Server error |
Example
Request Example
GET https://mail.apigw.ntruss.com/api/v1/template/export?size=5&page=0
Response Example
{
"content": [
{
"sid": 1,
"projectSid": 270294,
"requestUtc": {
"utc": 1576655804261,
"formattedDate": "2019-12-18",
"formattedDateTime": "2019-12-18 16:56:44 261"
},
"completeUtc": {
"utc": 1578383178834,
"formattedDate": "2020-01-07",
"formattedDateTime": "2020-01-07 16:46:18 834"
},
"elapsedTime": "479:49:34.573",
"statusCode": {
"label": "Expire",
"code": "E"
},
"downloadUrl": "http://localhost:7070/v1/email/templates/export/1"
},
{
"sid": 11,
"projectSid": 270294,
"requestUtc": {
"utc": 1589369165996,
"formattedDate": "2020-05-13",
"formattedDateTime": "2020-05-13 20:26:05 996"
},
"completeUtc": {
"utc": 1589369224517,
"formattedDate": "2020-05-13",
"formattedDateTime": "2020-05-13 20:27:04 517"
},
"elapsedTime": "00:00:58.521",
"statusCode": {
"label": "Complete",
"code": "C"
},
"downloadUrl": "http://localhost:7070/v1/email/templates/export/11"
}
],
"totalElements": 2,
"last": true,
"totalPages": 1,
"size": 5,
"number": 0,
"sort": [
{
"direction": "DESC",
"property": "createUtc",
"ignoreCase": false,
"nullHandling": "NATIVE",
"ascending": false,
"descending": true
}
],
"first": true,
"numberOfElements": 2
}
Properties
Property | Required | Type | Limitation | Description |
---|---|---|---|---|
totalElements | Yes | Integer | Total number of records | |
totalPages | Yes | Integer | Total number of pages | |
numberOfElements | Yes | Integer | Number of records in the current page | |
first | Yes | Boolean | Indicates whether it is the first page | |
last | Yes | Boolean | Indicates whether it is the last page | |
number | Yes | Integer | Index of the current page (starting from 0) | |
size | Yes | Integer | Number of records per page | |
sort | Yes | List<Sort> | Sort | |
content | No | List<TemplateExportRequestResponse> | Content |
Error Codes
HTTP status code | Return code | Response message |
---|---|---|
400 | 77101 | Error in login information |
400 | 77102 | BAD_REQUEST |
400 | 77103 | Resource not found |
403 | 77201 | No permissions |
403 | 77202 | No subscription |
405 | 77001 | METHOD_NOT_ALLOWED |
415 | 77002 | UNSUPPORTED_MEDIA_TYPE |
500 | 77301 | Default project not found |
500 | 77302 | Error in working with external system API |
500 | 77303 | Other INTERNAL_SERVER_ERROR |
Was this article helpful?