Actualizar un GPS existente
curl --request PUT \
--url https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sim_deta_id": {},
"gps_model_id": {},
"gps_inventory_id": {},
"assigned_id": {},
"gps_status_id": {},
"atlas_device_id": {},
"gps_name": {},
"imei": {},
"phone": {},
"activate_chip": true,
"endpoint_id": {},
"endpoint_name": {}
}
'import requests
url = "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}"
payload = {
"sim_deta_id": {},
"gps_model_id": {},
"gps_inventory_id": {},
"assigned_id": {},
"gps_status_id": {},
"atlas_device_id": {},
"gps_name": {},
"imei": {},
"phone": {},
"activate_chip": True,
"endpoint_id": {},
"endpoint_name": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sim_deta_id: {},
gps_model_id: {},
gps_inventory_id: {},
assigned_id: {},
gps_status_id: {},
atlas_device_id: {},
gps_name: {},
imei: {},
phone: {},
activate_chip: true,
endpoint_id: {},
endpoint_name: {}
})
};
fetch('https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'sim_deta_id' => [
],
'gps_model_id' => [
],
'gps_inventory_id' => [
],
'assigned_id' => [
],
'gps_status_id' => [
],
'atlas_device_id' => [
],
'gps_name' => [
],
'imei' => [
],
'phone' => [
],
'activate_chip' => true,
'endpoint_id' => [
],
'endpoint_name' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}"
payload := strings.NewReader("{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"gps_details_id": "<string>",
"atlas_device_id": {},
"atlas_warning": {},
"emnify_warning": {},
"fota_warning": {}
}GPS Details
Actualizar un GPS existente
Actualiza un GPS por UUID manteniendo la ruta legacy update/:gps_details_id para compatibilidad con clientes existentes.
PUT
/
api
/
v1
/
gps_details
/
update
/
{gps_details_id}
Actualizar un GPS existente
curl --request PUT \
--url https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sim_deta_id": {},
"gps_model_id": {},
"gps_inventory_id": {},
"assigned_id": {},
"gps_status_id": {},
"atlas_device_id": {},
"gps_name": {},
"imei": {},
"phone": {},
"activate_chip": true,
"endpoint_id": {},
"endpoint_name": {}
}
'import requests
url = "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}"
payload = {
"sim_deta_id": {},
"gps_model_id": {},
"gps_inventory_id": {},
"assigned_id": {},
"gps_status_id": {},
"atlas_device_id": {},
"gps_name": {},
"imei": {},
"phone": {},
"activate_chip": True,
"endpoint_id": {},
"endpoint_name": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sim_deta_id: {},
gps_model_id: {},
gps_inventory_id: {},
assigned_id: {},
gps_status_id: {},
atlas_device_id: {},
gps_name: {},
imei: {},
phone: {},
activate_chip: true,
endpoint_id: {},
endpoint_name: {}
})
};
fetch('https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'sim_deta_id' => [
],
'gps_model_id' => [
],
'gps_inventory_id' => [
],
'assigned_id' => [
],
'gps_status_id' => [
],
'atlas_device_id' => [
],
'gps_name' => [
],
'imei' => [
],
'phone' => [
],
'activate_chip' => true,
'endpoint_id' => [
],
'endpoint_name' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}"
payload := strings.NewReader("{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/gps_details/update/{gps_details_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sim_deta_id\": {},\n \"gps_model_id\": {},\n \"gps_inventory_id\": {},\n \"assigned_id\": {},\n \"gps_status_id\": {},\n \"atlas_device_id\": {},\n \"gps_name\": {},\n \"imei\": {},\n \"phone\": {},\n \"activate_chip\": true,\n \"endpoint_id\": {},\n \"endpoint_name\": {}\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"gps_details_id": "<string>",
"atlas_device_id": {},
"atlas_warning": {},
"emnify_warning": {},
"fota_warning": {}
}Authorizations
Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.
Path Parameters
ID del GPS (UUID)
Body
application/json
ID del SIM
ID del modelo de GPS
ID del inventario/ubicación
ID del asignado (cliente, técnico o bodega)
ID del estado del GPS
ID del dispositivo en Atlas
Nombre del GPS
IMEI del GPS
Número de teléfono del SIM
Activar chip en Emnify al actualizar
ID del endpoint Emnify
Nombre del endpoint en Emnify
Response
GPS actualizado exitosamente