Delete a folder
Delete a folder. Refuses non-empty folders unless `cascade=true`, in which case every descendant folder and document is deleted.
Authorization
bearerAuth documents.writeDashboard-issued token (pm_live_...) or OAuth-issued access token.
In: header
Scope: documents.write
Path Parameters
Query Parameters
When true, deletes the folder and every nested folder + document inside it. Without cascade=true a non-empty folder returns 409.
"false"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.papermark.com/v1/folders/string"{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer token.",
"doc_url": "https://www.papermark.com/docs/api/errors#unauthorized",
"details": null
}
}Update a folder
Rename the folder or update its icon/color. Renaming rewrites the `path` of this folder and every descendant in a single transaction.
Move a folder
Reparent a folder. Refuses moves into the folder itself or any of its descendants, and refuses if the target parent already has a sibling with the same slug. Descendant `path`s are rewritten in a single transaction.