问题描述
当我向 https://developer.api.autodesk.com/hq/v2/accounts/:account_id/projects/:project_id/users/:user_id
发出补丁请求时
并使用 industry_roles
属性传递角色 ID 列表,我得到以下响应:
{'code': 1001,'message': 'users list about to be imported are empty or in wrong format.'}
有人知道为什么会这样吗?
我在请求中传递的正文是:
{
"company_id": <my company id>,"industry_roles": [
<role id>,<role id>
]
}
解决方法
请确保数据作为带有 content-type:application/json
标头的 JSON 传递。