PUT ./fisiere
It is used to modify a directory:
- it is used to rename the directory/file with the parameter fsNume;
- can move the directory/file in a specific directory with the help of the parameter fsRootID
- it can accept a shared file with fssStatus = 1 or can reject a file with fssStatus = 2
File type:
- directory = 1;
- file = 2;
- attachment = 3;
- homeworks = 4;
Attention: When moving a file the following restriction will apply:
- it can be moved just in a file that has the type = 1(directory);
- if the directory was shared or if he has any child(subdirectory) shared, the directory can not be moved to another shared directory or in a shared parent (TBV)
- if the file has the parent directory shared, the file cannot be moved apart;
Attention: When setting the cover the following restriction will apply:
- the used should be the owner of the directory;
- the parameter fsCover should be child for the directory;
- the parameter fsCover should have a thumb;
PUT parameters
Name | Value Type | Validation | Details |
---|---|---|---|
fsID | int | Required | File/directory ID. |
fsRootID | int | Optional | Directory ID where the file will be moved. |
fsNume | string | Optional | The name of the file/directory. |
fsDescriere | string | Optional | The Description of the file/directory. |
fssStatus | int | Optional | Share file status; 1 - accept, 2 - reject; |
fsCoverFsID | int | Optional | File/directory ID for cover. |
Validation
Error Field | Error Code | Error Message |
---|---|---|
fsID | 109 | No permission; TBV |
fsRootID | 101 | File cannot be moved. |
fsCoverFsID | 102 | File is not a directory. |
fsCoverFsID | 103 | fsCover is not a file. |
fsCoverFsID | 104 | fsCover does not have a thumb. |
fsCoverFsID | 105 | fsCover is not child of file. |
Output example
{"result": true}