Actualizar conductor
PUT
/teams/{teamId}/drivers/{driverId}
const url = 'https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/drivers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","phone":"example","photoUrl":"example","licenseNumber":"example","licenseExpiry":"example","curp":"example","rfc":"example","birthDate":"example","medicalExpiry":"example","bloodType":"example","allergies":"example","emergencyContact":"example","experience":"example","certifications":["example"],"specialNotes":"example","salary":1,"paymentMethod":"example","bankAccount":"example","address":{"street":"example","extNumber":"example","intNumber":"example","neighborhood":"example","city":"example","state":"example","country":"Mexico","zipCode":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/drivers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "phone": "example", "photoUrl": "example", "licenseNumber": "example", "licenseExpiry": "example", "curp": "example", "rfc": "example", "birthDate": "example", "medicalExpiry": "example", "bloodType": "example", "allergies": "example", "emergencyContact": "example", "experience": "example", "certifications": [ "example" ], "specialNotes": "example", "salary": 1, "paymentMethod": "example", "bankAccount": "example", "address": { "street": "example", "extNumber": "example", "intNumber": "example", "neighborhood": "example", "city": "example", "state": "example", "country": "Mexico", "zipCode": "example" } }'Actualiza información de un conductor
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»teamId
required
string format: uuid
ID del equipo (UUID)
driverId
required
string format: uuid
ID del conductor (UUID)
Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
name
string
phone
string
photoUrl
string
licenseNumber
string
licenseExpiry
string
curp
string
rfc
string
birthDate
string
medicalExpiry
string
bloodType
string
allergies
string
emergencyContact
string
experience
string
certifications
Array<string>
specialNotes
string
salary
number
paymentMethod
string
bankAccount
string
address
object
street
string
extNumber
string
intNumber
string
neighborhood
string
city
string
state
string
country
string
zipCode
string
Responses
Sección titulada «Responses»Conductor actualizado
Media typeapplication/json
object
id
string format: uuid
teamId
string format: uuid
name
string
phone
string
photoUrl
string
status
Estado del conductor
string
licenseNumber
string
licenseExpiry
string
curp
string
rfc
string
birthDate
string
medicalExpiry
string
bloodType
string
emergencyContact
string
certifications
Array<string>
salary
number
address
object
street
string
extNumber
string
intNumber
string
neighborhood
string
city
string
state
string
country
string
zipCode
string
createdAt
string format: date-time
username
Usuario autogenerado para login en la app de conductores (ver POST /teams/{teamId}/drivers/{driverId}/access)
string
appAccessStatus
Estado de la cuenta del conductor en el pool de Cognito de la app móvil
string
allergies
string
Example
{ "status": "DISPONIBLE", "address": { "country": "Mexico" }, "appAccessStatus": "NONE"}Solicitud inválida
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Validation failed", "field": "email", "message": "Invalid email format"}No autenticado
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Unauthorized", "message": "Invalid or expired token"}Sin permisos
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Forbidden", "message": "You don't have permission to access this resource"}Recurso no encontrado
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Not found", "message": "Resource not found"}