Skip to content

Delete a collection

delete/api/collection
Delete a collection for the logged-in user.

Request

Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.Example: Authorization: Bearer <token>

Response

Schema: application/json
codestring
dataundefined
messagestring

Body application/json

json
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
json
// COLLECTION_NOT_FOUND

{
  "code": "301",
  "message": "Collection not found"
}
// COLLECTION_NOT_FOUND

{
  "code": "301",
  "message": "Collection not found"
}
json
// COLLECTION_DELETE_FAILED

{
  "code": "305",
  "message": "Collection delete failed"
}
// COLLECTION_DELETE_FAILED

{
  "code": "305",
  "message": "Collection delete failed"
}
json
// COLLECTION_HAS_BOOKMARKS

{
  "code": "306",
  "message": "Collection has bookmarks"
}
// COLLECTION_HAS_BOOKMARKS

{
  "code": "306",
  "message": "Collection has bookmarks"
}