On this page

Blog category management

6 endpoints.

MethodPathSummary
GET/api/blog-categoriesList blog categories
POST/api/blog-categoriesCreate a category (blogs:manage | blogs:create — the web's «إدارة التصنيفات» set)
DELETE/api/blog-categories/{id}Delete a category (blogs:manage | blogs:create)
GET/api/blog-categories/{id}One blog category (same read rule as the list)
PUT/api/blog-categories/{id}Rename a category (blogs:manage | blogs:create)
GET/api/blog-categories/blog/{blogId}A post's categories (same read rule as the list)

Readable exactly where the community's blogs are (member, or guest preview), otherwise 404. Post counts only count posts the caller may see. Auth: optional — a token changes what you can see (see "Who may read what").

Parameters

NameInRequiredTypeDescription
communityIdquerynostring (uuid)—

Responses

StatusDescriptionBody
200success, data: [BlogCategory]—
404The caller may not read this community's blogs—

Auth: Bearer JWT required.

Request body (required) — application/json

FieldTypeRequiredDescription
communityIdstring (uuid)no—
namestringyes—
descriptionstringno—

Responses

StatusDescriptionBody
201success, data: BlogCategory—

Auth: Bearer JWT required.

Responses

StatusDescriptionBody
200success—

Auth: optional — a token changes what you can see (see "Who may read what").

Responses

StatusDescriptionBody
200success, data: BlogCategory—

Auth: Bearer JWT required.

Responses

StatusDescriptionBody
200success, data: BlogCategory—

Auth: optional — a token changes what you can see (see "Who may read what").

Parameters

NameInRequiredTypeDescription
blogIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200success, data: [BlogCategory]—