Skip to main content
PUT
/
v2
/
folder-item-locations
Set Folder Item Location
curl --request PUT \
  --url https://public.api.serval.com/v2/folder-item-locations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "item": {
    "itemId": "<string>"
  },
  "folderId": "<string>"
}
'
{
  "data": {
    "item": {
      "itemId": "<string>"
    },
    "folderId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
item
item · object
required

The item to move.

folderId
string | null

The destination folder. Unset moves the item to the root (no folder). Must be in the same team and compatible folder tree as the item.

Response

Success

data
data · object