Share Groups
A ShareGroup is a way for you to store and name groups of email contacts to be used for sending share and inbox invitations.
List Share Groups
SDK Method
files_sdk.share_group.list()
Return Object
ListObj[ShareGroup]
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| user_id int64 | User ID. Provide a value of 0 to operate the current session's user. |
Additional Arguments
Show Share Group
SDK Method
files_sdk.share_group.find()
Return Object
ShareGroup
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| id int64 Required | Share Group ID. |
Create Share Group
SDK Method
files_sdk.share_group.create()
Return Object
ShareGroup
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| user_id int64 | User ID. Provide a value of 0 to operate the current session's user. |
| notes string | Additional notes of the share group |
| name string Required | Name of the share group |
| members array(object) Required | A list of share group members. |
Update Share Group
SDK Method
share_group.update()
Return Object
ShareGroup
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| notes string | Additional notes of the share group |
| name string | Name of the share group |
| members array(object) | A list of share group members. |
Delete Share Group
SDK Method
share_group.delete()
Return Object
No return value.
Authorization Requirement
Available to all authenticated keys or sessions.
The ShareGroup Object
Some of the methods above return a ShareGroup object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| id int64 | Share Group ID |
| name string | Name of the share group |
| notes string | Additional notes of the share group |
| user_id int64 | Owner User ID |
| members array(object) | A list of share group members |
members
Contacts in this share group. Creating a share group requires at least one member. An update replaces the members with this list, and an empty list leaves them unchanged. Existing members are matched by email and keep their stored email address.
| Value type | Description |
|---|---|
| array of objects | Contacts in this share group. Creating a share group requires at least one member. An update replaces the members with this list, and an empty list leaves them unchanged. Existing members are matched by email and keep their stored email address. |