POST ./fisiere/share
Need subscription flag (share file in chat): FLAG_GROUPS_CHAT_FILES
It is used to share a file/directory.
The recipient format can be retreived from here: Format destintar
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| fsID | int | Required | File/directory ID. |
| fssDestinatar[] | string | Rrequired | The recipient of the share. |
| fssMessage | file | Rrequired | Share message. |
| fssMode | int | Optional | Used to share to groups so that no notification appears on each file that is shared with a group. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| fsID | 101 | Invalid fsID or access denied. |
| fsID | 103 | File/directory can not be shared. File has share parent/child. |
| fssDestinatar[] | 102 | Invalid recipient. |
Output example
{"result": true}
