Rename A Folder

Title

Rename a folder.

URL Path

vault_rest/rename_folder

Method

PUT

Summary

This API allows renaming a folder in MetaDefender Vault.

HTTP header parameters

Authorization

The API key of the caller

REQUIRED

This header should have the following format:
Bearer [

Example: Bearer Cp01BwnXAIOLZXxn7yogjKqIZnZpQD

Method: PUT

HTTP body

JSON formatted request

REQUIRED

HTTP body sample
{
"folder_id": "2927ac9127dd472198f30f907c67bdac",
"new_folder_name": "test"
}

Description of request body

Name

Description

folder_id

The GUID of the folder

new_folder_name

The new name of the folder

Request Error

400

Bad Request

Invalid HTTP request

401

Unauthorized

Authentication unauthorized

403

Forbidden

Permission denied

500

Internal Server Error

Server is temporarily unavailable

Response

In case of a successful request status code 200 will be returned and the body of the response can be ignored. This means that the folder has been renamed.

Example of a failed request:

{
"message": "The specified folder could not be found",
"ui_message_key": "API_FOLDER_NOT_FOUND",
"status_code": "BadRequest"
}

Descriptions of response:

status_code

HTTP status code

message

A message describing the error

ui_message_key

A message key that is useful for localization