Skip to main content

PATCH /api/modules//activate

Activates a module, changing its status to ACTIVE. Activated modules are available for use in the authorization service.

Authentication

Requires authentication with valid JWT token.

Path Parameters

id
UUID
required
The unique identifier of the module to activate

Response

Returns no content on success (HTTP 204).

Status Codes

  • 204 No Content - Module activated successfully
  • 404 Not Found - Module not found

Example Request

curl -X PATCH https://api.example.com/api/modules/550e8400-e29b-41d4-a716-446655440000/activate \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

No content returned (HTTP 204)

Error Response

{
  "timestamp": "2026-03-04T10:30:00Z",
  "status": 404,
  "error": "Not Found",
  "message": "Module not found with id: 550e8400-e29b-41d4-a716-446655440000",
  "path": "/api/modules/550e8400-e29b-41d4-a716-446655440000/activate"
}

Notes

  • This operation is audited with action type “ACTIVAR_MODULO”
  • After activation, the module status will be set to ACTIVE
  • Use the Get Module endpoint to verify the status change

Build docs developers (and LLMs) love