Actualizar Transportador
Versión del producto: 10.11
Último modificado: 31 julio 2024
Actualiza un transportador por su ID. Permite actualizar más de un Transporer
Punto final
https://<Director_IP_address>:4443/c/router
                                            
Ejemplo de solicitud
Copiar
                                                        
                                                    
                                                curl --request POST \
    --url https://<Director_IP_address>:4443/c/router \
    --header "content-type: application/json" \
    --cookie @cookies.txt \
    --data '{
            "action": "TransporterManagement",
            "method": "refresh",
            "data": [1],
            "type": "rpc",
            "tid": 1}'
                                                        Campos de solicitud
| 
                                                                 Campo 
                                                             | 
                                                            
                                                                 Tipo 
                                                             | 
                                                            
                                                                 Valor(es) 
                                                             | 
                                                        
|---|---|---|
action
                                                             | 
                                                            string | 
                                                                 
  | 
                                                        
method
                                                             | 
                                                            string | 
                                                                 
  | 
                                                        
data
                                                             | 
                                                            array de long | Identificador(es) de transportador(es) | 
type
                                                             | 
                                                            string | rpc
                                                             | 
                                                        
tid
                                                             | 
                                                            int | 1
                                                             | 
                                                        
Muestra de respuesta
Copiar
                                                        
                                                    
                                                {
  "action": "TransporterManagement",
  "method": "refresh",
  "tid": "1",
  "type": "rpc",
  "message": null,
  "where": null,
  "cause": null,
  "data": null
}
                                                        Campos de respuesta
| 
                                                                 Campo 
                                                             | 
                                                            
                                                                 Valor 
                                                             | 
                                                            
                                                                 Descripción 
                                                             | 
                                                        
|---|---|---|
message
                                                             | 
                                                            string | Mensaje si la solicitud ha fallado | 
where
                                                             | 
                                                            string | Referencia al método en el que se produjo el problema | 
cause
                                                             | 
                                                            string | Causa del fallo |