Create team
POST/orgs/:orgId/teams
Creates a new team in the organization identified by the given orgId
.
Request
Path Parameters
orgId int64required
Organization numeric identifier
- application/json
Bodyrequired
Team create request
team object
avatarIdstring
Responses
- 200
- 400
- 403
- 409
OK
- application/json
- Schema
- Example (auto)
Schema
team object
{
"team": {
"teamId": 0,
"name": "string",
"description": "string",
"avatarUrl": "string",
"membersCount": 0
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Operation not allowed
Duplicated element
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
- python
- curl
- java
- r
- javascript
- go
- powershell
- HTTP.CLIENT
- REQUESTS
import http.client
import json
conn = http.client.HTTPSConnection("docs.seqera.io")
payload = ''
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <token>'
}
conn.request("POST", "/orgs/:orgId/teams", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))