Create a new team
curl --request POST \
--url https://incoming.qomon.app/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"team": {
"name": "<string>",
"users": [
{
"id": 1
}
],
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"house_number": "<string>",
"infos": "<string>",
"postalcode": "<string>",
"state": "<string>",
"street": "<string>"
},
"description": "<string>",
"hide_users": true,
"leaders": [
{
"id": 1
}
],
"private": true
}
}
}
'import requests
url = "https://incoming.qomon.app/teams"
payload = { "data": { "team": {
"name": "<string>",
"users": [{ "id": 1 }],
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"house_number": "<string>",
"infos": "<string>",
"postalcode": "<string>",
"state": "<string>",
"street": "<string>"
},
"description": "<string>",
"hide_users": True,
"leaders": [{ "id": 1 }],
"private": True
} } }
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({
data: {
team: {
name: '<string>',
users: [{id: 1}],
address: {
addition: '<string>',
building: '<string>',
city: '<string>',
country: '<string>',
county: '<string>',
door: '<string>',
floor: '<string>',
house_number: '<string>',
infos: '<string>',
postalcode: '<string>',
state: '<string>',
street: '<string>'
},
description: '<string>',
hide_users: true,
leaders: [{id: 1}],
private: true
}
}
})
};
fetch('https://incoming.qomon.app/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'team' => [
'name' => '<string>',
'users' => [
[
'id' => 1
]
],
'address' => [
'addition' => '<string>',
'building' => '<string>',
'city' => '<string>',
'country' => '<string>',
'county' => '<string>',
'door' => '<string>',
'floor' => '<string>',
'house_number' => '<string>',
'infos' => '<string>',
'postalcode' => '<string>',
'state' => '<string>',
'street' => '<string>'
],
'description' => '<string>',
'hide_users' => true,
'leaders' => [
[
'id' => 1
]
],
'private' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/teams"
payload := strings.NewReader("{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://incoming.qomon.app/teams")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"team": {
"id": 1,
"name": "<string>",
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"housenumber": "<string>",
"id": 1,
"infos": "<string>",
"latitude": "<string>",
"location": "<string>",
"longitude": "<string>",
"pollingstation": "<string>",
"postalcode": "<string>",
"score": 123,
"state": "<string>",
"street": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"hide_users": true,
"leaders": [
{
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"contacts": [
{
"id": 1
}
],
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"role_data": {
"color": "<string>",
"id": 1,
"mobile": true,
"name": "<string>",
"order": 1,
"web": true
},
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
}
],
"private": true,
"updated_at": "2023-11-07T05:31:56Z",
"users": [
{
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"contacts": [
{
"id": 1
}
],
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"role_data": {
"color": "<string>",
"id": 1,
"mobile": true,
"name": "<string>",
"order": 1,
"web": true
},
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
}
]
}
},
"status": "<string>"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Teams
Create a new team
Creates a new team.
POST
/
teams
Create a new team
curl --request POST \
--url https://incoming.qomon.app/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"team": {
"name": "<string>",
"users": [
{
"id": 1
}
],
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"house_number": "<string>",
"infos": "<string>",
"postalcode": "<string>",
"state": "<string>",
"street": "<string>"
},
"description": "<string>",
"hide_users": true,
"leaders": [
{
"id": 1
}
],
"private": true
}
}
}
'import requests
url = "https://incoming.qomon.app/teams"
payload = { "data": { "team": {
"name": "<string>",
"users": [{ "id": 1 }],
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"house_number": "<string>",
"infos": "<string>",
"postalcode": "<string>",
"state": "<string>",
"street": "<string>"
},
"description": "<string>",
"hide_users": True,
"leaders": [{ "id": 1 }],
"private": True
} } }
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({
data: {
team: {
name: '<string>',
users: [{id: 1}],
address: {
addition: '<string>',
building: '<string>',
city: '<string>',
country: '<string>',
county: '<string>',
door: '<string>',
floor: '<string>',
house_number: '<string>',
infos: '<string>',
postalcode: '<string>',
state: '<string>',
street: '<string>'
},
description: '<string>',
hide_users: true,
leaders: [{id: 1}],
private: true
}
}
})
};
fetch('https://incoming.qomon.app/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'team' => [
'name' => '<string>',
'users' => [
[
'id' => 1
]
],
'address' => [
'addition' => '<string>',
'building' => '<string>',
'city' => '<string>',
'country' => '<string>',
'county' => '<string>',
'door' => '<string>',
'floor' => '<string>',
'house_number' => '<string>',
'infos' => '<string>',
'postalcode' => '<string>',
'state' => '<string>',
'street' => '<string>'
],
'description' => '<string>',
'hide_users' => true,
'leaders' => [
[
'id' => 1
]
],
'private' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/teams"
payload := strings.NewReader("{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://incoming.qomon.app/teams")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"team\": {\n \"name\": \"<string>\",\n \"users\": [\n {\n \"id\": 1\n }\n ],\n \"address\": {\n \"addition\": \"<string>\",\n \"building\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"county\": \"<string>\",\n \"door\": \"<string>\",\n \"floor\": \"<string>\",\n \"house_number\": \"<string>\",\n \"infos\": \"<string>\",\n \"postalcode\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"hide_users\": true,\n \"leaders\": [\n {\n \"id\": 1\n }\n ],\n \"private\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"team": {
"id": 1,
"name": "<string>",
"address": {
"addition": "<string>",
"building": "<string>",
"city": "<string>",
"country": "<string>",
"county": "<string>",
"door": "<string>",
"floor": "<string>",
"housenumber": "<string>",
"id": 1,
"infos": "<string>",
"latitude": "<string>",
"location": "<string>",
"longitude": "<string>",
"pollingstation": "<string>",
"postalcode": "<string>",
"score": 123,
"state": "<string>",
"street": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"hide_users": true,
"leaders": [
{
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"contacts": [
{
"id": 1
}
],
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"role_data": {
"color": "<string>",
"id": 1,
"mobile": true,
"name": "<string>",
"order": 1,
"web": true
},
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
}
],
"private": true,
"updated_at": "2023-11-07T05:31:56Z",
"users": [
{
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"contacts": [
{
"id": 1
}
],
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"role_data": {
"color": "<string>",
"id": 1,
"mobile": true,
"name": "<string>",
"order": 1,
"web": true
},
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
}
]
}
},
"status": "<string>"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Authorizations
OAuth2 access token. Pass the token in the Authorization header as Bearer <token>. The token is looked up in Redis to resolve the caller identity.
Body
application/json
Show child attributes
Show child attributes
Last modified on July 7, 2026
Was this page helpful?
⌘I

