Skip to main content
PATCH
/
team
/
{team_id}
Typescript (SDK)
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": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

team_id
string
required

Body

data
object
required

Response

200 - application/vnd.api+json

Success

data
object