Update the name, route, or key of an existing module.
curl --request PUT \
--url https://your-api-host/api/Modulo/4 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}'
{
"IdModulo": 4,
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}
Authorization: Bearer <token>
modulo.editar permission. Returns 403 Forbidden if the authenticated user’s profile does not have this permission.
id) is excluded from the comparison:
400 Bad Request with "Ya existe un módulo con la misma clave." if another module already uses the same Clave.400 Bad Request with "Ya existe un módulo con la misma clave y ruta." if another module already uses the same Clave and Ruta combination.Clave of an existing module will break any permission strings that reference the old key. Update profile permissions accordingly after renaming a module’s key.curl --request PUT \
--url https://your-api-host/api/Modulo/4 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}'
{
"IdModulo": 4,
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}
curl --request PUT \
--url https://your-api-host/api/Modulo/4 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}'
{
"IdModulo": 4,
"strNombreModulo": "Reportes Avanzados",
"Ruta": "/Module/Reporte",
"Clave": "reporte"
}