--- title: "restoreTemplate" slug: "ai-application-service-cloudoutboundmailer-restoretemplate" updated: 2026-09-17T09:57:24Z published: 2026-09-17T09:57:24Z canonical: "api.ncloud-docs.com/ai-application-service-cloudoutboundmailer-restoretemplate" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # restoreTemplate Classic/VPC環境で利用できます。 ユーザーのリクエストにより削除処理されたメールテンプレートを復旧します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | PUT | /template/{templateSid}/restoration | ### リクエストヘッダ Cloud Outbound Mailer APIで共通して使用されるヘッダの詳細は、[Cloud Outbound Mailerのリクエストヘッダ](/docs/ja/ai-application-service-cloudoutboundmailer#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `templateSid` | Integer | Required | 復旧対象テンプレートの SID - [getTemplateStructure](/docs/ja/ai-application-service-cloudoutboundmailer-gettemplatestructure)を参照 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request PUT 'https://mail.apigw.ntruss.com/api/v1/template/258/restoration' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `sid` | Integer | - | 復旧したテンプレートの SID | | `createDate` | Object | - | 作成日時 - [NesDateTime](/docs/ja/common-vapidatatype-nesdatetime)を参照 | | `name` | String | - | テンプレートの名前 | | `description` | String | - | テンプレートの説明 | | `title` | String | - | メールの件名 | | `senderAddress` | String | - | 送信者のメールアドレス | | `senderName` | String | - | 送信者名 | | `body` | String | - | メールの本文 | | `isUse` | Boolean | - | テンプレートの使用有無 | | `category` | Object | - | 親カテゴリの情報 - [Category](/docs/ja/common-vapidatatype-nescategory)を参照 | ### レスポンスステータスコード Cloud Outbound Mailer APIで共通して使用されるレスポンスステータスコードの詳細は、[Cloud Outbound Mailerのレスポンスステータスコード](/docs/ja/ai-application-service-cloudoutboundmailer#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "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" } } ```