Blog

Delete a blog category

POST https://demo.notifuse.com/api/blogCategories.delete

Deletes a category and every post in it, in one transaction. Both are soft-deleted, which frees their slugs for reuse. Public pages are cached for up to 5 minutes, so the category can take that long to disappear from the blog. Requires the blog write permission.

Authorizations

Authorization string header required

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

Query Parameters

workspace_id string required

The ID of the workspace. Passed in the query string, not the body.

Example ws_1234567890

Body application/json

id string required
Example 7c9e6679-7425-40de-944b-e07fc1f90ae7

Response

200 Category and its posts deleted object
success boolean
Example true
400 Bad request - missing id or category not found object
error string required

Error message

401 Unauthorized - invalid or missing authentication token object
error string required

Error message

403 Forbidden - missing the blog write permission object
error string required

Error message

resource string required

The permission resource the endpoint requires.

Example blog
permission string required

The access level the endpoint requires on that resource.

Options read, write