TagMangoTagMango Docs
Course

Delete Chapter

DELETE
/api/v1/external/chapters/{chapterId}

Permanently delete a chapter along with its QnA, assignment, and all assignment submissions. Course progress is recalculated automatically.

AuthorizationBearer <token>

In: header

Path Parameters

chapterId*string

Chapter object id

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

curl -X DELETE "https://api-prod-new.tagmango.com/api/v1/external/chapters/66c4964c11e7fef26751f3a7" \  -H "x-whitelabel-host: string"
Empty
{
  "code": 400,
  "type": "Bad request",
  "statusMessage": "BAD_REQUEST",
  "message": "Invalid request",
  "success": false
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "success": false
}
{
  "code": 404,
  "type": "Not Found",
  "statusMessage": "NOT_FOUND",
  "errorCode": "CHAPTER_NOT_FOUND",
  "message": "The chapter does not exist or does not belong to this creator.",
  "result": "The chapter does not exist or does not belong to this creator.",
  "success": false
}