Create, update, delete, and query the available Collaborations in Box.
Table Specific Information
Collaborations are connections between Folders and Groups; i.e., one Group could be collaborating on a specific Collaboration.
To query the Collaborations table, specify an Id, FolderId, or a GroupId.
SELECT * FROM Collaborations WHERE Id = '123'
To insert into Collaborations you need to connect a Folder with a Group or a User and assign a Role to them.
INSERT INTO Collaborations(Role, ItemId, ItemType, AccessibleById, AccessibleByType) VALUES('admin', '1', 'folder', '2', 'user')
Only the Role and the Status of the Collaboration can be updated.
UPDATE Collaborations SET Role = 'viewer', Status = 'accepted' WHERE Id = '100'
Collaborations can be deleted by providing an Id and issuing a DELETE statement.
DELETE FROM Collaborations WHERE Id = '100'
The Id of the collaboration.
The date the collaboration was created at.
The date the collaboration was modified at.
The date the collaboration was acknowledged.
The Id of the user that created the collaboration.
The status of the collaboration.
The role of the user or group of the collaborator. Allowed values are editor, viewer, previewer, uploader, previewer uploader, viewer uploader, co-owner, or owner
The Id of the item the collaboration is related to.
The type of the item the collaboration is related to.
The Id of the group/user that can access this collaboration.
The type of the entity of Accessible_By_Id.
The allowed values are group, user.
The login of the the Accessible_By_Id.
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
The Id of the folder the collaboration is related to.
The Id of the group the collaboration is related to.
The Id of the user you want to impersonate. Only works with Admin, Co-Admin and Service Accounts.