Create a new Team
    • Dark
      Light
    • PDF

    Create a new Team

    • Dark
      Light
    • PDF

    Article summary

    Post
    /api/v1/teams.create

    Creates a new team.

    Permission required: create-team permission

    Header parameters
    X-Auth-Token
    stringRequired

    The authToken of the authenticated user.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    X-User-Id
    stringRequired

    The userId of the authenticated user.

    ExamplerbAXPnMktTFbNpwtJ
    Body parameters
    Example 1
    {
      "name": "teamName",
      "type": 0,
      "members": [
        "8dugqGhuRvCBLdZft"
      ],
      "room": {
        "readOnly": true
      }
    }
    Expand All
    object
    name
    string Required

    The team name.

    type
    integer Required

    Privacy of the team (0 - Public, 1 - Private).

    members
    Array of string

    The user ids to add to the team when it is created.

    string
    room
    object
    readOnly
    boolean
    owner
    string

    Set the owner of the team.

    Responses
    200

    OK

    Note that the roomId is main room ID of the team.

    Example 1
    {
      "team": {
        "_id": "651619e3a2f73c7460e18cc5",
        "name": "teamName",
        "type": 0,
        "createdAt": "2023-09-29T00:27:15.189Z",
        "createdBy": {
          "_id": "rbAXPnMktTFbNpwtJ",
          "username": "roxie"
        },
        "_updatedAt": "2023-09-29T00:27:15.189Z",
        "roomId": "651619e3a2f73c7460e18cc7"
      },
      "success": true
    }
    Expand All
    object
    team
    object
    _id
    string
    name
    string
    type
    integer
    createdAt
    string
    createdBy
    object
    _id
    string
    username
    string
    _updatedAt
    string
    roomId
    string
    success
    boolean

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.