Skip to content

Rename or move a folder

PATCH
/folders/{id}
curl --request PATCH \
--url https://api.dropslate.top/v1/folders/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "parentId": "example" }'

Requires write.

id
required
string
Media typeapplication/json
object
name
string
parentId
string
nullable
Examplegenerated
{
"name": "example",
"parentId": "example"
}

The folder as edited.

Media typeapplication/json
object
Examplegenerated
{}

The key is missing the “write” scope, or this route needs a signed-in session instead of a key.

Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

Does not exist, or belongs to a different workspace - the two look identical from here.

Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}