getTemplate
    • PDF

    getTemplate

    • PDF

    Article Summary

    指定したテンプレートを照会します。

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

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    templateSidYesStringテンプレート sid

    レスポンス

    HTTPステータスコード説明
    200テンプレート照会済み
    400認証失敗、間違ったリクエスト
    500サーバエラー

    例示

    リクエスト

    GET https://mail.apigw.ntruss.com/api/v1/template/258
    
    
    

    レスポン

    {
      "sid": 258,
      "createDate": {
        "utc": 1589348863431,
        "formattedDate": "2020-05-13",
        "formattedDateTime": "2020-05-13 14:47:43 431"
      },
      "name": "membershipTemplate",
      "description": "Example of creating a template",
      "title": "[EN] Naver Cloud Platform",
      "senderAddress": "admin@master.com",
      "senderName": "Admin",
      "body": "Congratulations on your membership.",
      "isUse": true,
      "category": {
        "sid": 252,
        "parentSid": -1,
        "name": "testCategory"
      }
    }
    

    属性

    項目必須タイプ制約事項説明
    sidYesIntegerテンプレート sid
    createDateYesNesDateTime生成日時
    nameYesStringテンプレート名
    descriptionNoStringテンプレート説明
    titleYesStringメールの題目
    senderAddressYesString送信者メールアドレス
    senderNameNoString発送者名
    bodyYesStringメール本文
    isUseYesBooleanテンプレート使用可否
    categoryNoCategory親のカテゴリ情報

    エラーコード

    HTTP Status Codeリターンコードレスポンスメッセージ
    40077101ログイン情報のエラー
    40077102BAD_REQUEST
    40077103リソースが存在しない
    40377201権限なし
    40377202Email商品の利用申込をしていない
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301基本プロジェクトが存在しない
    50077302外部システムAPIの連動エラー
    50077303その他のINTERNAL_SERVER_ERROR

    この記事は役に立ちましたか?

    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.