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

NameValue TypeValidationDetails
fsIDintRequiredFile/directory ID.
fsRootIDintOptionalDirectory ID where the file will be moved.
fsNumestringOptionalThe name of the file/directory.
fsDescrierestringOptionalThe Description of the file/directory.
fssStatusintOptionalShare file status; 1 - accept, 2 - reject;
fsCoverFsIDintOptionalFile/directory ID for cover.

Validation

Error FieldError CodeError Message
fsID109No permission; TBV
fsRootID101File cannot be moved.
fsCoverFsID102File is not a directory.
fsCoverFsID103fsCover is not a file.
fsCoverFsID104fsCover does not have a thumb.
fsCoverFsID105fsCover is not child of file.

Output example

{
"result": true
}