teams
Create Team
POST
/
api
/
teams
Create Team
curl --request POST \
--url https://api.aixy-gateway.com/api/teams \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"name": "<string>",
"default_role": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/teams"
payload = {
"name": "<string>",
"default_role": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', default_role: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"default_role": "<string>",
"member_count": 123,
"created_at": "<string>",
"updated_at": "<string>",
"object": "organization.team"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
⌘I
Create Team
curl --request POST \
--url https://api.aixy-gateway.com/api/teams \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"name": "<string>",
"default_role": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/teams"
payload = {
"name": "<string>",
"default_role": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', default_role: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"default_role": "<string>",
"member_count": 123,
"created_at": "<string>",
"updated_at": "<string>",
"object": "organization.team"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}