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
| Parameter | Type | Description |
|---|---|---|
moduleId | string | Path parameter |
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 404 | HTTP_404 | Not Found |
| 500 | HTTP_500 | Internal Server Error |
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 404 | HTTP_404 | Not Found |
| 403 | HTTP_403 | Forbidden |
| 400 | HTTP_400 | Bad Request |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 404 | HTTP_404 | Not Found |
| 403 | HTTP_403 | Forbidden |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X DELETE "https://api.allurelms.com/modules/moduleId-value" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"