Skip to content

Create Team

POST
/api/superadmin/orgs/{org_id}/teams
curl --request POST \
--url https://example.com/api/superadmin/orgs/example/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "slug": "example" }'

Create a new team within an organization.

org_id
required
Org Id
string
Media type application/json
CreateTeamRequest
object
name
required
Name
string
slug
Any of:
string
Example generated
{
"name": "example",
"slug": "example"
}

Successful Response

Media type application/json
Response Create Team Api Superadmin Orgs Org Id Teams Post
object
key
additional properties
any
Example generated
{}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}