Create a group
curl --request POST \
--url https://zeus.hooper.gg/v1/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Varsity",
"type": "team",
"description": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": {
"team_id": "lg-t-12"
}
}
'import requests
url = "https://zeus.hooper.gg/v1/groups"
payload = {
"name": "Acme Varsity",
"type": "team",
"description": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": { "team_id": "lg-t-12" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Varsity',
type: 'team',
description: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
metadata: {team_id: 'lg-t-12'}
})
};
fetch('https://zeus.hooper.gg/v1/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "grp_412",
"object": "group",
"created": 123,
"name": "Acme Varsity",
"type": "team",
"privacy": "public",
"description": "<string>",
"level": "recreational",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": {
"team_id": "lg-t-12"
},
"linked": true,
"default": true
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}Groups
Create a group
Creates a team or pickup group owned by your account’s owner and belonging to your organization. Send sessions to it right away with group on POST /v1/sessions.
POST
/
v1
/
groups
Create a group
curl --request POST \
--url https://zeus.hooper.gg/v1/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Varsity",
"type": "team",
"description": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": {
"team_id": "lg-t-12"
}
}
'import requests
url = "https://zeus.hooper.gg/v1/groups"
payload = {
"name": "Acme Varsity",
"type": "team",
"description": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": { "team_id": "lg-t-12" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Varsity',
type: 'team',
description: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
metadata: {team_id: 'lg-t-12'}
})
};
fetch('https://zeus.hooper.gg/v1/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "grp_412",
"object": "group",
"created": 123,
"name": "Acme Varsity",
"type": "team",
"privacy": "public",
"description": "<string>",
"level": "recreational",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"metadata": {
"team_id": "lg-t-12"
},
"linked": true,
"default": true
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}Authorizations
Headers
Body
application/json
Defaults to private for a team and public for a pickup group. Who can find and join it in the Hooper app. public: anyone can find and join. private: anyone can find it; joining needs an invite. hidden: it doesn't show up in search; only people with an invite can see or join it.
Available options:
public, private, hidden Response
Created