Skip to main content
POST
/
Misionero
/
CrearMisionero
Create Missionary
curl --request POST \
  --url https://api.example.com/Misionero/CrearMisionero \
  --header 'Content-Type: application/json' \
  --data '
{
  "nombre": "<string>",
  "correo": "<string>",
  "telefono": "<string>",
  "idadmin": 123
}
'
"Missionary created successfully"
Creates a new missionary in the DonaSF system.

Request Body

nombre
string
required
The name of the missionary
correo
string
required
The email address of the missionary
telefono
string
required
The phone number of the missionary
idadmin
integer
required
The ID of the administrator associated with this missionary

Request Example

{
  "nombre": "Juan Perez",
  "correo": "[email protected]",
  "telefono": "+1234567890",
  "idadmin": 1
}

Response

resultados
string
A confirmation message or identifier for the created missionary

Success Response

"Missionary created successfully"

Status Codes

200
Success
Missionary was created successfully
400
Error
Bad request - returned in the following cases:
  • Error occurred during missionary creation
  • No missionary was inserted (database operation failed)

Error Responses

"Error: [error message]"
"No se inserto el Misionero de prueba"

Build docs developers (and LLMs) love