Share A Folder

Title

Share a folder with one or more users

URL Path

vault_rest/update_folder_share

Method

POST

Summary

This API allows sharing 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: POST

HTTP body

json formatted request

REQUIRED

HTTP body sample
{
"folderId": "2927ac9127dd472198f30f907c67bdac",
"userIds": [
26
]
}

Description of request body

Name

Description

folderId

The GUID of the folder

userIds

The Ids of the users to share with

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 successfully shared.

Example of a failed request:

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

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