How to update a collaboration with Python
I've been trying to update an existing collaboration to set can_view_path = "True"
I can retrieve the value for a collaboration ID, but I'm getting an error in setting ...
collaboration = client.collaboration(collab_id='XXXXXXX').get(['can_view_path'])
but I'm getting an error in setting ...
updated_collaboration = collaboration.update_info(CollaborationRole.EDITOR, {'can_view_path' : True})
It is assuming that my second parameter is status.
Has anyone successfully updated a collaboration value in python that is not the role or status?
-
Hi ,
From what I can see from the Python SDK, the edit collaboration endpoint will only allow the editing of the role (first param) and the status (second param), as per this.
A few options:
- Delete the collaboration instead, then re-create it with the desired params.
- Add an issue to the Box Python SDK Github account for the SDK team to take a look at extending the SDK for.
Hope that helps,
Jon
Please sign in to leave a comment.
Comments
1 comment