Creates a new team belonging to the authenticated org.
Required permission
Os > Team > General > Create
Request body
- {object}
name
string requiredThe name of the team.min length3max length45pattern^[a-zA-Z](('[a-zA-Z])?(-|\s)?[a-zA-Z0-9]+(('[a-zA-Z])?(-|\s)[a-zA-Z0-9]+)*)?$description
stringA description of the team.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$email
string requiredThe billing email address for the team.pattern^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredID of the team.pattern^[A-Za-z0-9-]+$name
string requiredDisplay name of the team.description
stringDescription of the team.createdAt
string requiredThe time the team was created.updatedAt
stringThe time the team was last updated.
API
CLI
JS Client
POST /v1/teams
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"My Team","description":"This is my team.","email":"billing@example.com"}' \
https://api.northflank.com/v1/teamsExample response
200 OK
Details about the newly created team.
JSON
{
"data": {
"id": "my-team",
"name": "My Team",
"description": "This is my team.",
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
}