Skip to main content
PUT
/
mision
/
{id}
curl -X PUT "https://api.example.com/mision/1" \
  -H "Content-Type: application/json" \
  -d '{
    "descripcion": "Traslado de personal al aeropuerto - URGENTE",
    "horaSalidaProgramada": "07:30:00",
    "observaciones": "Salida adelantada por vuelo temprano"
  }'
{
  "success": true,
  "message": "Misión actualizada exitosamente",
  "data": {
    "idMision": 1,
    "idSolicitud": 1,
    "descripcion": "Traslado de personal al aeropuerto - URGENTE",
    "fechaProgramada": "2025-06-15",
    "horaSalidaProgramada": "07:30:00",
    "horaLlegadaEstimada": "09:30:00",
    "observaciones": "Salida adelantada por vuelo temprano",
    "idEstadoMision": 1,
    "codigoEstado": "PROGRAMADA"
  }
}

Update Mission

Updates an existing mission in PROGRAMADA (scheduled) state.

Path Parameters

id
integer
required
ID of the mission to update.

Request Body

All fields are optional. Only provided fields will be updated.
idLugarOrigen
integer
ID of the origin location. Must exist if provided.
idLugarDestino
integer
ID of the main destination location. Must exist if provided.
descripcion
string
Description of the mission. Maximum 500 characters.
fechaProgramada
date
Scheduled date for the mission in YYYY-MM-DD format.
horaSalidaProgramada
string
Scheduled departure time in HH:MM:SS or HH:MM format.
horaLlegadaEstimada
string
Estimated arrival time in HH:MM:SS or HH:MM format.
observaciones
string
General observations about the mission.
paradas
array
List of stops. If provided, replaces all existing stops.

Response

success
boolean
Indicates if the request was successful.
message
string
Response message: “Misión actualizada exitosamente”
data
object
The updated mission object with all current details.

Validations

  • Mission must be in PROGRAMADA state
  • If stops list is provided, it replaces all existing stops
curl -X PUT "https://api.example.com/mision/1" \
  -H "Content-Type: application/json" \
  -d '{
    "descripcion": "Traslado de personal al aeropuerto - URGENTE",
    "horaSalidaProgramada": "07:30:00",
    "observaciones": "Salida adelantada por vuelo temprano"
  }'
{
  "success": true,
  "message": "Misión actualizada exitosamente",
  "data": {
    "idMision": 1,
    "idSolicitud": 1,
    "descripcion": "Traslado de personal al aeropuerto - URGENTE",
    "fechaProgramada": "2025-06-15",
    "horaSalidaProgramada": "07:30:00",
    "horaLlegadaEstimada": "09:30:00",
    "observaciones": "Salida adelantada por vuelo temprano",
    "idEstadoMision": 1,
    "codigoEstado": "PROGRAMADA"
  }
}

Build docs developers (and LLMs) love