--- title: "updateTemplate" slug: "ai-application-service-cloudoutboundmailer-updatetemplate" updated: 2026-09-17T09:57:24Z published: 2026-09-17T09:57:24Z canonical: "api.ncloud-docs.com/ai-application-service-cloudoutboundmailer-updatetemplate" --- > ## 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. # updateTemplate Classic/VPC環境で利用できます。 作成したメールテンプレートの名前、内容などの属性を変更します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | PUT | /template/{templateSid} | ### リクエストヘッダ 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)を参照 | ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `templateName` | String | Required | 変更対象テンプレート名 - ハングル、英数字、記号の「.」、「_」、「-」を組み合わせて0~100文字以内で入力 | | `description` | String | Optional | テンプレートの説明(Byte) - 0~300 | | `title` | String | Required | メールの件名(Byte) - 1~500 | | `body` | String | Required | メールの本文 | | `senderAddress` | String | Required | 送信者のメールアドレス | | `senderName` | String | Optional | 送信者名(Byte) - 0~69 | | `isUse` | Boolean | Optional | 変更したテンプレートの使用有無 - `true` \| `false` - `true`: テンプレートを使用 - `false`: テンプレートを使用しない | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request PUT 'https://mail.apigw.ntruss.com/api/v1/template/258' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data-raw '{ "templateName": "membershipTemplateKR", "title": "[KO] Naver Cloud Platform", "body": "ご登録いただき誠にありがとうございます。", "senderAddress": "admin@master.com", "senderName": "Admin", "isUse": true }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `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" } } ```