我一直试图用rest向现有的票证中添加一个注释
端点: cw.mycompany.com/v4_6_release/apis/3.0/service/tickets/1327224/notes
请求机构:
{
"text":"Test message"
}
然而,我得到了以下答复:
{
"code": "InvalidObject",
"message": "serviceNote object is invalid",
"errors": [
{
"code": "ServiceNote",
"message": "Please choose where to display the notes in order to save this record.",
"resource": "serviceNote",
"field": "detailDescriptionFlag, internalAnalysisFlag, resolutionFlag"
}
]
}
我需要在我的要求中添加什么,以便在我的票上添加便条?在ServiceNote对象中,我没有看到任何看起来像“显示位置”的东西,或者任何类似的东西。
谢谢,
乔什
发布于 2019-04-05 03:51:04
将错误中列出的“字段”值之一作为布尔值提供;detailDescriptionFlag、internalAnalysisFlag或resolutionFlag。
很可能您将使用detailDescriptionFlag。这方面的一个有效载荷是:
{
'text' : 'Hello World',
'detailDescriptionFlag' : true
}
创建服务说明的REST文档中没有提到这些内容。
https://stackoverflow.com/questions/55501939
复制相似问题