POST
/
v1
/
core
/
organizations
/
{orgId}
/
teams
Create a new team for an org
curl --request POST \
  --url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/core/organizations/{orgId}/teams \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "coachUids": [
    "<string>"
  ],
  "memberUids": [
    "<string>"
  ],
  "newUserDefaultConversationTypes": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "organizationId": "<string>",
  "coachUids": [
    "<string>"
  ],
  "coachManifest": {},
  "memberUids": [
    "<string>"
  ],
  "memberManifest": {},
  "newUserDefaultConversationTypes": [
    "<string>"
  ],
  "createdAt": "<string>"
}

Path Parameters

orgId
string
required

Organization ID

Body

application/json
name
string
required

Team name

coachUids
string[]

Array of coach user IDs

memberUids
string[]

Array of member user IDs

newUserDefaultConversationTypes
string[]

Array of conversation type IDs

Response

201 - application/json

Create a new team for an org

id
string
required

Team ID

name
string | null
required

Team name

organizationId
string
required

Organization this team belongs to

coachUids
string[]
required

Array of coach user IDs

coachManifest
object
required

Map of coach UIDs to their manifest data

memberUids
string[]
required

Array of member user IDs

memberManifest
object
required

Map of member UIDs to their manifest data

newUserDefaultConversationTypes
string[]
required

Array of conversation type IDs

createdAt
string | null
required

ISO 8601 date string