Automation Suite
2023.10
False
Automation Suite API 指南
上次更新日期 2023年11月3日
更新消息模板
按模板 ID 更新现有消息模板。
API 端点

https://{yourDomain}/identity_/api/MessageTemplate/{templateId}
作用域
需要以下作用域:
- PM.MessageTemplate
- PM.MessageTemplate.Write
请求标头
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
注意:如要获取
{access_token}
,请确保通过描述的其中一种方法进行身份验证。
路径参数
参数 |
数据类型 |
描述 |
---|---|---|
(必填) |
字符串 |
要更新的消息模板的 ID。 |
请求正文
请求正文包含消息 ID 和新内容。
{
"id": 0,
"value": "string"
}
{
"id": 0,
"value": "string"
}
响应
200 OK
消息模板将更新,并返回新信息。{
"id": 0,
"name": "string",
"value": "string"
}
{
"id": 0,
"name": "string",
"value": "string"
}