Authorizations
Body
Response
201 - application/vnd.api+json
Created
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.create(data={
"type": latitudesh_python_sdk.PostTeamTeamsType.TEAMS,
"attributes": {
"name": "Name",
"currency": latitudesh_python_sdk.PostTeamTeamsCurrency.USD,
"address": "Address",
},
})
# Handle response
print(res)
{
"data": {
"id": "team_zp6AZ91ZbLt8A7x47b6oI1510LV0",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_w79w7tlr",
"referred_code": null
}
},
"meta": {}
}
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.create(data={
"type": latitudesh_python_sdk.PostTeamTeamsType.TEAMS,
"attributes": {
"name": "Name",
"currency": latitudesh_python_sdk.PostTeamTeamsCurrency.USD,
"address": "Address",
},
})
# Handle response
print(res)
{
"data": {
"id": "team_zp6AZ91ZbLt8A7x47b6oI1510LV0",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_w79w7tlr",
"referred_code": null
}
},
"meta": {}
}
Show child attributes
Created
Show child attributes
Was this page helpful?