POST /api/storage/v1/set-visibility or /api/storage/v1/remove-visibility


Change file or directory visibility.

Request (set)

{
  "token": String,
  "path": String,
  "visibility": "hidden"/"private"/"public"
}

Request (remove)

{
  "token": String,
  "path": String,
}

Response

Status code: 200

{
  "type": "visibility changed"
}

or

Status code: 304

{
  "type": "nothing changed"
}

Possible errors

  • invalid token
  • not verified
  • permission denied
  • file not found
  • external