Skip to main content

Endpoint

POST /Admin/CrearAdministrador
Content-Type: application/json

Request Body

nombre
string
required
The name of the administrator
correo
string
required
The email address of the administrator
telefono
string
required
The phone number of the administrator

Request Example

{
  "nombre": "Juan Pérez",
  "correo": "[email protected]",
  "telefono": "5551234567"
}

Response

result
string
A confirmation message indicating the administrator was created successfully

Response Example

"Administrador creado exitosamente"

Status Codes

  • 200 OK - Administrator created successfully
  • 400 Bad Request - Invalid request data or insertion failed

Source Reference

Controller: AdminController.cs:13-26

Build docs developers (and LLMs) love