Actualizar punto de ruta
PUT
/teams/{teamId}/route-points/{routePointId}
const url = 'https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/route-points/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"clientId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","address":"example","city":"example","state":"example","zipCode":"example","coordsLat":1,"coordsLng":1,"pointType":"PICKUP","contactName":"example","contactPhone":"example","notes":"example","isActive":true}'};
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/route-points/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "address": "example", "city": "example", "state": "example", "zipCode": "example", "coordsLat": 1, "coordsLng": 1, "pointType": "PICKUP", "contactName": "example", "contactPhone": "example", "notes": "example", "isActive": true }'Actualiza información de un punto de ruta
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)
routePointId
required
string format: uuid
ID del punto de ruta (UUID)
Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
clientId
string format: uuid
name
string
address
string
city
string
state
string
zipCode
string
coordsLat
number
coordsLng
number
pointType
Tipo de punto de ruta
string
contactName
string
contactPhone
string
notes
string
isActive
boolean
Responses
Sección titulada «Responses»Punto de ruta actualizado
Media typeapplication/json
object
id
string format: uuid
teamId
string format: uuid
clientId
string format: uuid
clientName
string
name
string
address
string
city
string
state
string
zipCode
string
country
string
coordsLat
number
coordsLng
number
pointType
Tipo de punto de ruta
string
contactName
string
contactPhone
string
notes
string
isActive
boolean
createdAt
string format: date-time
Example
{ "country": "Mexico", "pointType": "PICKUP", "isActive": true}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"}