public class CreateCollaborationRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateCollaborationRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected CreateCollaborationRequestBodyAccessibleByField |
accessibleBy
The user or group to give access to the item.
|
protected Boolean |
canViewPath
Determines if the invited users can see the entire parent path to the associated folder.
|
protected OffsetDateTime |
expiresAt
Set the expiration date for the collaboration.
|
protected Boolean |
isAccessOnly
If set to `true`, collaborators have access to shared items, but such items won't be visible in
the All Files list.
|
protected CreateCollaborationRequestBodyItemField |
item
The item to attach the comment to.
|
protected EnumWrapper<CreateCollaborationRequestBodyRoleField> |
role
The level of access granted.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
CreateCollaborationRequestBody(CreateCollaborationRequestBody.Builder builder) |
|
CreateCollaborationRequestBody(CreateCollaborationRequestBodyItemField item,
CreateCollaborationRequestBodyAccessibleByField accessibleBy,
CreateCollaborationRequestBodyRoleField role) |
|
CreateCollaborationRequestBody(CreateCollaborationRequestBodyItemField item,
CreateCollaborationRequestBodyAccessibleByField accessibleBy,
EnumWrapper<CreateCollaborationRequestBodyRoleField> role) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CreateCollaborationRequestBodyAccessibleByField |
getAccessibleBy() |
Boolean |
getCanViewPath() |
OffsetDateTime |
getExpiresAt() |
Boolean |
getIsAccessOnly() |
CreateCollaborationRequestBodyItemField |
getItem() |
EnumWrapper<CreateCollaborationRequestBodyRoleField> |
getRole() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final CreateCollaborationRequestBodyItemField item
protected final CreateCollaborationRequestBodyAccessibleByField accessibleBy
protected final EnumWrapper<CreateCollaborationRequestBodyRoleField> role
protected Boolean isAccessOnly
protected Boolean canViewPath
Be aware that this meaningfully increases the time required to load the invitee's **All Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled to 1,000 per user.
Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only an owner can update `can_view_path` on existing collaborations.
`can_view_path` can only be used for folder collaborations.
When you delete a folder with `can_view_path=true`, collaborators may still see the parent path. For instructions on how to remove this, see [Even though a folder invited via can_view_path is deleted, the path remains displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed).
protected OffsetDateTime expiresAt
This feature will only work if the **Automatically remove invited collaborators: Allow folder owners to extend the expiry date** setting has been enabled in the **Enterprise Settings** of the **Admin Console**. When the setting is not enabled, collaborations can not have an expiry date and a value for this field will be result in an error.
public CreateCollaborationRequestBody(CreateCollaborationRequestBodyItemField item, CreateCollaborationRequestBodyAccessibleByField accessibleBy, CreateCollaborationRequestBodyRoleField role)
public CreateCollaborationRequestBody(CreateCollaborationRequestBodyItemField item, CreateCollaborationRequestBodyAccessibleByField accessibleBy, EnumWrapper<CreateCollaborationRequestBodyRoleField> role)
protected CreateCollaborationRequestBody(CreateCollaborationRequestBody.Builder builder)
public CreateCollaborationRequestBodyItemField getItem()
public CreateCollaborationRequestBodyAccessibleByField getAccessibleBy()
public EnumWrapper<CreateCollaborationRequestBodyRoleField> getRole()
public Boolean getIsAccessOnly()
public Boolean getCanViewPath()
public OffsetDateTime getExpiresAt()