[BETA] Delete a knowledge base category

Delete a category of your school's knowledge base, so that a section removed from your own system disappears from Edusign and from the student app without a manual delete in Edusign. No body.

Deletion is permanent: a deleted category and what it held cannot be restored. The response counts what was deleted, the category included: deletedCategoriesCount is 1 and deletedPublicationsCount 0 for an empty category. The items that followed the category in its parent, or at the root, move up one position. Nothing outside the deleted category changes.

Categories that hold items

By default only an empty category is deleted: a category that still holds sub-categories or publications answers 409 KNOWLEDGE_BASE_CATEGORY_NOT_EMPTY and nothing is deleted. With cascadeToPublications=true, the category and every sub-category and publication below it, at any depth, are deleted together, or nothing is. To keep some of them, move them elsewhere first with PATCH /v3/knowledge-base/categories/{id} or PATCH /v3/knowledge-base/publications/{id} and their parentId. Any other value than true, false, 1 or 0 answers 400 VALIDATION_ERROR.

Items synced with the campus chatbot

When your school has the campus chatbot and the category, or with cascadeToPublications=true anything below it, is synced with the chatbot, the request answers 409 KNOWLEDGE_BASE_CHATBOT_SYNCED and nothing is deleted: the chatbot cannot forget a document yet. The response lists each synced item in errors. Turn their sync off in Edusign first: in the knowledge base of the student app, the Chatbot column of the publication list shows a switch on each item, set it from Synced to Not synced. Then send the request again. Nothing is ever sent to the chatbot by this route, and no sync setting is changed. When your school does not have the campus chatbot, the sync setting is ignored and the delete proceeds.

Covers

The cover images of every item to delete are removed from the storage once every check passed, just before the items are deleted. When the storage refuses one, the request answers 502 KNOWLEDGE_BASE_COVER_DELETE_FAILED and no item is deleted, though some covers may already be gone: send the same request again once the storage answers, a cover already removed counts as removed.

Concurrent changes

The checks run on the category as the request reads it, and the delete happens only while the same items lie below it, with the same type, chatbot sync and cover: when an item was filed into it or moved out of it, synced, unsynced or given a new cover meanwhile, the request answers 409 KNOWLEDGE_BASE_CATEGORY_CONFLICT, nothing is deleted and no cover is removed. Send the request again. A move between two items that both stay below the category changes nothing to the delete.

A category is found in your school only: an unknown or malformed id, another school's category or a publication answers 404 KNOWLEDGE_BASE_CATEGORY_NOT_FOUND.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The identifier Edusign gave the category or the publication.

Query Params
boolean
Defaults to false

Optional, defaults to false. true deletes the category with every sub-category and publication below it, at any depth. false deletes an empty category only: a category that still holds items answers 409 KNOWLEDGE_BASE_CATEGORY_NOT_EMPTY and nothing is deleted. Accepts true, false, 1 and 0.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json