import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.userData.update({
userDataId: "<id>",
});
console.log(result);
}
run();{
"data": {
"type": "user_data",
"id": "<string>",
"attributes": {
"description": "<string>",
"content": "<string>",
"project": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"billing_type": "<string>",
"provisioning_type": "<string>",
"billing_method": "<string>",
"bandwidth_alert": true,
"environment": "<string>",
"billing": {
"subscription_id": "<string>",
"type": "<string>",
"method": "<string>"
},
"stats": {
"ip_addresses": 123,
"prefixes": 123,
"servers": 123,
"vlans": 123
}
},
"created_at": "<string>",
"updated_at": "<string>"
}
},
"meta": {}
}Allow you update User Data in a team.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.userData.update({
userDataId: "<id>",
});
console.log(result);
}
run();{
"data": {
"type": "user_data",
"id": "<string>",
"attributes": {
"description": "<string>",
"content": "<string>",
"project": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"billing_type": "<string>",
"provisioning_type": "<string>",
"billing_method": "<string>",
"bandwidth_alert": true,
"environment": "<string>",
"billing": {
"subscription_id": "<string>",
"type": "<string>",
"method": "<string>"
},
"stats": {
"ip_addresses": 123,
"prefixes": 123,
"servers": 123,
"vlans": 123
}
},
"created_at": "<string>",
"updated_at": "<string>"
}
},
"meta": {}
}Was this page helpful?