import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.update({
teamId: "team_bVJM4y6m4VCyy101JzA3szlVGRb",
requestBody: {
data: {
id: "team_bVJM4y6m4VCyy101JzA3szlVGRb",
type: "teams",
attributes: {
address: "Address",
name: "Name",
},
},
},
});
console.log(result);
}
run();{
"data": {
"id": "team_bVJM4y6m4VCyy101JzA3szlVGRb",
"type": "teams",
"attributes": {
"name": "Langworth-Langosh",
"slug": "langworth-langosh",
"address": "2746 Joe Stream",
"currency": "WST",
"enforce_mfa": false,
"referred_code": null
}
},
"meta": {}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.update({
teamId: "team_bVJM4y6m4VCyy101JzA3szlVGRb",
requestBody: {
data: {
id: "team_bVJM4y6m4VCyy101JzA3szlVGRb",
type: "teams",
attributes: {
address: "Address",
name: "Name",
},
},
},
});
console.log(result);
}
run();{
"data": {
"id": "team_bVJM4y6m4VCyy101JzA3szlVGRb",
"type": "teams",
"attributes": {
"name": "Langworth-Langosh",
"slug": "langworth-langosh",
"address": "2746 Joe Stream",
"currency": "WST",
"enforce_mfa": false,
"referred_code": null
}
},
"meta": {}
}Was this page helpful?