通知テンプレートの変更
PUT
/iam/governance/selfservice/api/v1/notification/template/{id}
既存の通知テンプレートを変更します。
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
- id: number
通知テンプレートID。
問合せパラメータ
- status(optional): string
特定のIDを持つ通知テンプレートのステータスを変更します。指定可能な値:
[ "Enabled", "Disabled" ]
既存の通知テンプレートを変更するためのテンプレート詳細。
ルート・スキーマ: ModifyNotificationTemplateBody
型:
ソースの表示
object- description(optional): string
通知テンプレートの説明。
- eventname(optional): string
通知テンプレートのイベント名。
- localTemplateCollection(optional): array localTemplateCollection
ネストされたスキーマ: LocaleTemplateBody
型:
ソースの表示
object- contenttype(optional): string
ロケール・テンプレートのコンテンツ・タイプ。
- encoding(optional): string
ロケール・テンプレートのエンコーディング。
- longmessage(optional): string
ロケール・テンプレートの長いメッセージ。
- shortmessage(optional): string
ロケール・テンプレートの短いメッセージ。
- subject(optional): string
ロケール・テンプレートの件名。
レスポンス
204レスポンス
操作に成功しました。
400レスポンス
入力が無効です。
例
この例では、すべてのエンティティの物理タイプと名前のリストを取得します。ここに示す情報は、擬似システムを使用した場合のものであり、プロトタイプとして提供しています。
cURLの例
curl -i -X PUT -u username:password \
--header 'Content-Type: application/json' \
--header 'X-Requested-By: <anyvalue>' \
--data-raw '{"localTemplateCollection":{"en_US":{"subject":"demo1","shortmessage":"demo1","longmessage":"demo1","contenttype":"text/plain","encoding":"UTF-8"}},"eventname":"EndDateNotificationEvent","templatename":"DemoTemplate","description":"demo1"}' \
'http://pseudo.com/iam/governance/selfservice/api/v1/notification/template/41'
GETレスポンス本文の例
JSON形式のレスポンス本文のコンテンツの例を次に示します。
{
"status":61662
}