importTemplate
    • PDF

    importTemplate

    • PDF

    Article Summary

    ユーザーがJsonで作成したテンプレート構造ファイルをインポートします。

    POST https://{endpoint}/template/import
    

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    fileYesFileimportするJsonファイル(Jsonに重複などの不具合が発生することがある場合、当該不具合発生直前までのみ追加され、その後は追加されない。)

    レスポンス

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

    例示

    リクエスト

    POST https://mail.apigw.ntruss.com/api/v1/template/import
    Content-Type: multipart/form-data; boundary=----WebKitFormBoundarysvwDAQeQdwkAw4RS
    
    ------WebKitFormBoundarysvwDAQeQdwkAw4RS
    Content-Disposition: form-data; name="file"; filename="template_20200513180659.json"
    Content-Type: application/json
    
    ------WebKitFormBoundarysvwDAQeQdwkAw4RS--
    

    レスポンス

    {
      "contents": [
        {
          "sid": 268,
          "parentSid": -1,
          "createDate": {
            "utc": 1589358238711,
            "formattedDate": "2020-05-13",
            "formattedDateTime": "2020-05-13 17:23:58 711"
          },
          "name": "AD",
          "isCategory": true,
          "isUse": true,
          "subCategories": [],
          "templates": [
            {
              "sid": 269,
              "parentSid": 268,
              "createDate": {
                "utc": 1589360814507,
                "formattedDate": "2020-05-13",
                "formattedDateTime": "2020-05-13 18:06:54 507"
              },
              "name": "AD_Template",
              "isCategory": false,
              "isUse": true,
              "subCategories": null,
              "templates": null
            }
          ]
        },
        {
          "sid": 270,
          "parentSid": -1,
          "createDate": {
            "utc": 1589361807385,
            "formattedDate": "2020-05-13",
            "formattedDateTime": "2020-05-13 18:23:27 385"
          },
          "name": "Nomal",
          "isCategory": true,
          "isUse": true,
          "subCategories": [],
          "templates": [
            {
              "sid": 271,
              "parentSid": 270,
              "createDate": {
                "utc": 1589361807394,
                "formattedDate": "2020-05-13",
                "formattedDateTime": "2020-05-13 18:23:27 394"
              },
              "name": "Nomal_Template",
              "isCategory": false,
              "isUse": true,
              "subCategories": null,
              "templates": null
            }
          ]
        },
        {
          "sid": 272,
          "parentSid": -1,
          "createDate": {
            "utc": 1589365172274,
            "formattedDate": "2020-05-13",
            "formattedDateTime": "2020-05-13 19:19:32 274"
          },
          "name": "ETC",
          "isCategory": true,
          "isUse": true,
          "subCategories": null,
          "templates": null
        }
      ]
    }
    

    属性

    項目必須タイプ制約事項説明
    contentsNoList<TemplateStructureResponse>テンプレート·カテゴリの詳細構造

    エラーコード

    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.