当我尝试通过REST请求更新代理技能组时,我得到以下响应:
<apiError>
<errorDetail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="resourceErrorDetail">
<refURL>https://x/unifiedconfig/config/agent/(id)</refURL>
<apiErrors>
<apiError>
<errorMessage>The specified URL does not exist.</errorMessage>
<errorType>notFound.dbData</errorType>
</apiError>
</apiErrors>
</errorDetail>
<errorMessage>There were one or more errors processing the following request: update https://x/unifiedconfig/config/agent/(id)</errorMessage>
<errorType>operation.resourceErrors</errorType>
</apiError>
我已经注意的事情:
答案 0 :(得分:0)
问题是授权,对于更新代理技能组,凭证需要是您想要访问的团队的主管。
相同的授权需要查看以下API:
的https:// {SERVERIP} / unifiedconfig /配置/ skillgroup /
如果你能看到所有技能组,你也会改变代理人的技能组。
我还提到了语法:
<operation>
<operationType>update</operationType>
<refURLs>
<refURL>/unifiedconfig/config/agent/5000</refURL>
<refURL>/unifiedconfig/config/agent/5001</refURL>
</refURLs>
<changeSet>
<agent>
<skillGroupsAdded>
<skillGroup>
<refURL>/unifiedconfig/config/skillgroup/6000</refURL>
</skillGroup>
</skillGroupsAdded>
<skillGroupsRemoved>
<skillGroup>
<refURL>/unifiedconfig/config/skillgroup/6001</refURL>
</skillGroup>
</skillGroupsAdded>
</changeSet>
</operation>