DELETE /modules/:moduleId

DELETE /modules/:moduleId

GET /api/modules/[moduleId] - Get a single module Check authentication with Clerk Get user's profile Fetch the module PATCH /api/modules/[moduleId] - Update a module Check authentication with Clerk Get user's profile Fetch the existing module Check permissions Parse request body Build update object Update the module DELETE /api/modules/[moduleId] - Delete a module Check authentication with Clerk Get user's profile Fetch the existing module Check permissions Delete the module

Endpoint

DELETE /modules/:moduleId

Authentication

This endpoint requires authentication. Include your authentication token in the request headers.

Path Parameters

ParameterTypeDescription
moduleIdstringPath parameter

Error Responses

Status CodeError CodeDescription
401HTTP_401Unauthorized
404HTTP_404Not Found
404HTTP_404Not Found
500HTTP_500Internal Server Error
401HTTP_401Unauthorized
404HTTP_404Not Found
404HTTP_404Not Found
403HTTP_403Forbidden
400HTTP_400Bad Request
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error
401HTTP_401Unauthorized
404HTTP_404Not Found
404HTTP_404Not Found
403HTTP_403Forbidden
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error

Example Request

curl -X DELETE "https://api.allurelms.com/modules/moduleId-value" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"