TagMangoTagMango Docs
Course

Delete Module

DELETE
/api/v1/external/modules/{moduleId}

Permanently delete a module and all its chapters, QnA, assignments, and assignment submissions. Course progress is recalculated automatically.

On a dripped course the deleted module's schedule goes with it. A later Update Course drip request must list the remaining modules only — including the deleted one is rejected because it no longer belongs to the course.

AuthorizationBearer <token>

In: header

Path Parameters

moduleId*string

Module 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

application/json

application/json

curl -X DELETE "https://api-prod-new.tagmango.com/api/v1/external/modules/66c4964c11e7fef26751f3a7" \  -H "x-whitelabel-host: string"
Empty
{
  "code": 400,
  "type": "Bad Request",
  "statusMessage": "BAD_REQUEST",
  "success": false,
  "message": "Invalid request",
  "result": "Invalid request"
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "result": "Invalid token",
  "success": false
}
{
  "code": 403,
  "type": "Forbidden",
  "statusMessage": "FORBIDDEN",
  "errorCode": "WORKSHOP_MANGO_FORBIDDEN",
  "message": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "result": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "success": false
}
{
  "code": 404,
  "type": "Not Found",
  "statusMessage": "NOT_FOUND",
  "errorCode": "MODULE_NOT_FOUND",
  "message": "The module does not exist or does not belong to this creator.",
  "result": "The module does not exist or does not belong to this creator.",
  "success": false
}
{
  "code": 429,
  "type": "Too Many Requests",
  "statusMessage": "TOO_MANY_REQUESTS",
  "message": "Request limit exceeded. try after 10 seconds",
  "result": "Request limit exceeded. try after 10 seconds",
  "success": false
}