getTemplateExportRequestList
    • PDF

    getTemplateExportRequestList

    • PDF

    Article Summary

    Get template backup (Json) download request list

    GET https://{endpoint}/template/export
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationDescription
    sizeNoIntegerDefault:10Number of records per page
    pageNoIntegerDefault:0Index of a page to receive results (0..N)
    sortNoStringDefault: createUtc, sid: request sid, createUtc: Creation time, statusCode: request statusSort by (format: property(,asc|desc)): Messages are sorted in ascending order (asc) by default; multiple fields can be used for sorting

    Response

    HTTP status codeDescription
    200Request list lookup complete
    400Authentication failed, invalid request.
    500Server 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

    PropertyRequiredTypeLimitationDescription
    totalElementsYesIntegerTotal number of records
    totalPagesYesIntegerTotal number of pages
    numberOfElementsYesIntegerNumber of records in the current page
    firstYesBooleanIndicates whether it is the first page
    lastYesBooleanIndicates whether it is the last page
    numberYesIntegerIndex of the current page (starting from 0)
    sizeYesIntegerNumber of records per page
    sortYesList<Sort>Sort
    contentNoList<TemplateExportRequestResponse>Content

    Error Codes

    HTTP status codeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permissions
    40377202No subscription
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301Default project not found
    50077302Error in working with external system API
    50077303Other INTERNAL_SERVER_ERROR

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.