SparrowDesk
Collections

Delete a collection

Deletes the collection and every collection nested under it. Articles inside them are not deleted: they are detached from the collection and, if published, reverted to draft, so they no longer appear in the help center.

DELETE
/collections/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idinteger

Collection id

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://app.sparrowdesk.com/v1/collections/0"
{
  "success": true,
  "id": 1201
}
{
  "message": "Unauthorized"
}
{
  "error": {
    "message": "Missing required scope or product feature is not enabled for this account."
  }
}
{
  "error": {
    "message": "Collection not found"
  }
}
{
  "error": {
    "message": "Invalid id"
  }
}
{
  "name": "RateLimitExceeded",
  "message": "Rate limit exceeded for: APIS_PER_MINUTE",
  "code": 429,
  "details": [
    {
      "name": "APIS_PER_MINUTE",
      "quota": 0,
      "count": 0,
      "remaining": 0
    }
  ]
}
{
  "error": {
    "message": "An error occurred while deleting the collection"
  }
}