Create a child team
curl --request POST \
--url https://bee.theswarm.com/team/create-team \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"team_name": "<string>",
"owner_email": "<string>",
"company_website": "<string>",
"company_linkedin_url": "<string>"
}
'{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Team Management
Create Team
Create a new child team under your partner account.
POST
/
team
/
create-team
Create a child team
curl --request POST \
--url https://bee.theswarm.com/team/create-team \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"team_name": "<string>",
"owner_email": "<string>",
"company_website": "<string>",
"company_linkedin_url": "<string>"
}
'{
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Available for Swarm Partners only. Get in touch to learn more about becoming a partner.
team_id β save this value, as it is required to authenticate subsequent requests on behalf of that team.
For a conceptual overview, see Team Management β Create Team.
Using the team_id
Pass the returnedteam_id in the x-authenticate-team header to perform actions in the context of the child team:
x-authenticate-team: <team_id>
Team ownership
Ifowner_email is omitted, the parent teamβs owner automatically becomes the owner of the newly created child team.Authorizations
Body
application/json
Name of the new team
Email of the team owner. If omitted, the current team's owner is used.
Company website to use for automatic network mapping. Cannot be combined with company_linkedin_url.
Company LinkedIn URL to use for automatic network mapping. Cannot be combined with company_website.
Response
Team created successfully
ID of the newly created team
Was this page helpful?
βI

