Authorizations
Path Parameters
Body
Response
200 - application/vnd.api+json
Success
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Teams.Update(ctx, "team_VNoL4jAy7YTbvVV0005jI6vQylGZ", operations.PatchCurrentTeamTeamsRequestBody{
Data: operations.PatchCurrentTeamTeamsData{
ID: "team_z3Qna7E2QRc3455EQ34JfAWNQ42",
Type: operations.PatchCurrentTeamTeamsTypeTeams,
Attributes: &operations.PatchCurrentTeamTeamsAttributes{
Address: latitudeshgosdk.Pointer("Address"),
Name: latitudeshgosdk.Pointer("Name"),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "team_z3Qna7E2QRc3455EQ34JfAWNQ42",
"type": "teams",
"attributes": {
"name": "Frami-Grady",
"slug": "frami-grady",
"address": "646 Vaughn Throughway",
"currency": "TWD",
"enforce_mfa": false,
"referred_code": null
}
},
"meta": {}
}package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Teams.Update(ctx, "team_VNoL4jAy7YTbvVV0005jI6vQylGZ", operations.PatchCurrentTeamTeamsRequestBody{
Data: operations.PatchCurrentTeamTeamsData{
ID: "team_z3Qna7E2QRc3455EQ34JfAWNQ42",
Type: operations.PatchCurrentTeamTeamsTypeTeams,
Attributes: &operations.PatchCurrentTeamTeamsAttributes{
Address: latitudeshgosdk.Pointer("Address"),
Name: latitudeshgosdk.Pointer("Name"),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "team_z3Qna7E2QRc3455EQ34JfAWNQ42",
"type": "teams",
"attributes": {
"name": "Frami-Grady",
"slug": "frami-grady",
"address": "646 Vaughn Throughway",
"currency": "TWD",
"enforce_mfa": false,
"referred_code": null
}
},
"meta": {}
}Show child attributes
Success
Show child attributes
Was this page helpful?