updateTemplate
    • PDF

    updateTemplate

    • PDF

    Article Summary

    Modify the contents of the template requested by the user.

    PUT https://{endpoint}/template/{templateSid}
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationDescription
    templateSidYesStringtemplate sid
    templateNameYesStringMax:100template name
    descriptionNoStringMax:300template description
    titleYesStringMax:500mail title
    bodyYesStringmail body
    senderAddressYesStringsender mail address
    senderNameNoStringMax:69sender name
    isUseNoBooleanwhether to use

    Response

    HTTP status codeDescription
    200Template modification complete
    400Authentication failed, invalid request.
    500Server error

    Example

    Request Example

    PUT https://mail.apigw.ntruss.com/api/v1/template/258
    
    {
      "templateName": "membershipTemplateKR",
      "title": "[KO] Naver Cloud Platform",
      "body": "회원 가입을 환영합니다.",
      "senderAddress": "admin@master.com",
      "senderName": "Admin",
      "isUse": true
    }
    
    

    Response Example

    {
      "sid": 258,
      "createDate": {
        "utc": 1589348863431,
        "formattedDate": "2020-05-13",
        "formattedDateTime": "2020-05-13 14:47:43 431"
      },
      "name": "membershipTemplateKR",
      "description": null,
      "title": "[KO] Naver Cloud Platform",
      "senderAddress": "admin@master.com",
      "senderName": "Admin",
      "body": "회원 가입을 환영합니다.",
      "isUse": true,
      "category": {
        "sid": 252,
        "parentSid": -1,
        "name": "testCategory"
      }
    }
    

    Properties

    PropertyRequiredTypeLimitationDescription
    sidYesIntegersid of modified template
    createDateYesNesDateTimecreation date and time
    nameYesStringThe name of modified template
    descriptionNoStringDescription of modified template
    titleYesStringmail title
    senderAddressYesStringsender mail address
    senderNameNoStringsender name
    bodyYesStringmail body
    isUseYesBooleanwhether to use
    categoryNoCategoryParent category information

    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.