Description

Update a folder.

Request

HTTP Method: PUT

Query Parameter Description
name The folder name.
Path Parameter Description
folder-id ID of the folder

Sample request

curl -X PUT \
  https://<tenant-domain>/api/v1/folders/<folder-id> \
  -H 'content-type: application/json' \
  -H 'x-user-email: <email-address>' \
  -H 'x-user-token: <api-token>'
  -d '{
        "name": "New folder name",
      }'

Response

A successful request will return a JSON object describing the updated folder

Field description

Parameter Description
id The folder ID.
name The folder name.
team_id ID of team to which the folder belongs.
content_type The type of content stored in this folder
size The number of items in this folder

Sample response

{
  "id": 1,
  "name": "New folder name",
  "content_type": "CREDENTIAL",
  "team_id": 1,
  "size": 0
}