Update a Folder

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://<<META.tenant.domain>>/api/v1/folders/<<folder_id>> \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'
  -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
}
Was this helpful?