Updating Collaboration to "Owner" and Creating collaboration to "Owner" not working using API
回答済みHi,
I have been trying to update Folder collaboration using Python. Everything works except when i change role to "owner". I get message "item with same name already exists" when i try to update the collboration. According to API doc, it should demote owner to co-owner and co-owner to owner but not happening.
Also, when creating entirely new collaboration from API and adding user as owner. I am getting "Invalid value "owner" 'role' with value "owener" not found. Please let me know what am i missing here.
I tried POSTMAN and got the same issue as well.
For instance i used this code in python:
try:
url = API.BASE_API_URL+"/collaborations/"+collab_id
data = {
'role':'owner'
}
box_response = self._session.put(url, data=json.dumps(data))
return box_response.status_code
except BoxAPIException as ex:
print(ex)
Thanks in advance.
Bibek
サインインしてコメントを残してください。
コメント
2件のコメント