v1
latestOpenAPI 3.0.02026-08-04891301.4 MBCreate a team
Creates a new team and returns the created team object. The authenticated user becomes the team's owner.
When app is supplied, the request is scoped to that app and the caller must hold the corresponding app scope. Omit org unless you want the team pinned to a specific organization. A default chat thread is provisioned for the team automatically after creation.
post/api/v1/teams
Request body
Example request
{
"acl": {
"add": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"grants": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"remove": [
{
"principal": "string",
"principal_type": "user"
}
]
},
"description": "An example description.",
"metadata": {
"key": "value"
},
"name": "Example Name",
"org": "string"
}Response
Successful response
Example response
{
"acl": {
"add": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"grants": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"remove": [
{
"principal": "string",
"principal_type": "user"
}
]
},
"app": "dap_0aBcDeFgHiJkLmNoPqRsTu",
"badges": {},
"created_at": "2024-01-01T00:00:00Z",
"description": "An example description.",
"id": "tem_0aBcDeFgHiJkLmNoPqRsTu",
"membership_status": "member",
"metadata": {
"key": "value"
},
"name": "Example Name",
"org": "org_0aBcDeFgHiJkLmNoPqRsTu",
"sandbox": "dsb_0aBcDeFgHiJkLmNoPqRsTu",
"slug": "example-slug",
"updated_at": "2024-01-01T00:00:00Z"
}