BoldSales

API Documentation

Create a team

post/api/v1/teams

Creates a new team and returns the created team's ID upon a successful API call.

Code snippet

curl -X 'POST' \
'https://{yourdomain}/api/v1/teams' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
  "data": {
    "name": "Enterprise Sales Team",
    "description": "Manages enterprise accounts and oversees strategic sales opportunities.",
    "users": [
      {
        "id": 1
      },
      {
        "id": 2
      }
    ]
  }
}'

Request body

namestringRequiredUnique name for the team. Used for identification and display purposes.
descriptionstringDetailed description explaining the team's purpose and responsibilities.

usersarrayRequired

List of users to be assigned to the team initially.

idintegerUnique identifier of the user to add to the team.

Example response

201 Created

{
  "message": "Team created successfully.",
  "data": {
    "id": 12
  }
}