LegacyTeams

Legacy teams allow you to form groups of users withing the organization for more efficient management. Previously Legacy Teams were called Teams and occupied the v1/teams* path. They're being deprecated because we are preparing for an upgraded version of the Teams API, which requires migrating the current functionality to a new path URL v1/legacyTeams*. The functionality and OAuth scopes of all the Teams API endpoints will remain the same.

Get all teams

Copy link
Copy to clipboard
GET

/v1/legacyTeams

Deprecated endpoint

Returns data about teams within the company.

Query parameters

order_by

string

The field name to sort returned teams by

Default

id

Values

id

name

manager_id

active_flag

skip_users

number

When enabled, the teams will not include IDs of member users

Default

0

Values

0

1

Response
200

OK

Expand all
Copy code
    • true
    • [ ... ]

    Get a single team

    Copy link
    Copy to clipboard
    GET

    /v1/legacyTeams/{id}

    Deprecated endpoint

    Returns data about a specific team.

    Path parameters

    id

    integer

    required

    The ID of the team

    Query parameters

    skip_users

    number

    When enabled, the teams will not include IDs of member users

    Default

    0

    Values

    0

    1

    Response
    200

    OK

    Expand all
    Copy code
      • true
      • { ... }

      Get all users in a team

      Copy link
      Copy to clipboard
      GET

      /v1/legacyTeams/{id}/users

      Deprecated endpoint

      Returns a list of all user IDs within a team.

      Path parameters

      id

      integer

      required

      The ID of the team

      Response
      200

      OK

      Expand all
      Copy code
        • true
        • [ ... ]

        Get all teams of a user

        Copy link
        Copy to clipboard
        GET

        /v1/legacyTeams/user/{id}

        Deprecated endpoint

        Returns data about all teams which have the specified user as a member.

        Path parameters

        id

        integer

        required

        The ID of the user

        Query parameters

        order_by

        string

        The field name to sort returned teams by

        Default

        id

        Values

        id

        name

        manager_id

        active_flag

        skip_users

        number

        When enabled, the teams will not include IDs of member users

        Default

        0

        Values

        0

        1

        Response
        200

        OK

        Expand all
        Copy code
          • true
          • [ ... ]

          Add a new team

          Copy link
          Copy to clipboard
          POST

          /v1/legacyTeams

          Deprecated endpoint

          Adds a new team to the company and returns the created object.

          Body parameters

          application/json

          name

          string

          required

          The team name

          description

          string

          The team description

          manager_id

          integer

          required

          The team manager ID

          users

          array

          The list of user IDs

          Response
          200

          OK

          Expand all
          Copy code
            • true
            • { ... }

            Add users to a team

            Copy link
            Copy to clipboard
            POST

            /v1/legacyTeams/{id}/users

            Deprecated endpoint

            Adds users to an existing team.

            Path parameters

            id

            integer

            required

            The ID of the team

            Body parameters

            application/json

            users

            array

            required

            The list of user IDs

            Response
            200

            OK

            Expand all
            Copy code
              • true
              • [ ... ]

              Update a team

              Copy link
              Copy to clipboard
              PUT

              /v1/legacyTeams/{id}

              Deprecated endpoint

              Updates an existing team and returns the updated object.

              Path parameters

              id

              integer

              required

              The ID of the team

              Body parameters

              application/json

              name

              string

              The team name

              description

              string

              The team description

              manager_id

              integer

              The team manager ID

              users

              array

              The list of user IDs

              active_flag

              Flag that indicates whether the team is active

              Values

              0

              1

              deleted_flag

              Flag that indicates whether the team is deleted

              Values

              0

              1

              Response
              200

              OK

              Expand all
              Copy code
                • true
                • { ... }

                Delete users from a team

                Copy link
                Copy to clipboard
                DELETE

                /v1/legacyTeams/{id}/users

                Deprecated endpoint

                Deletes users from an existing team.

                Path parameters

                id

                integer

                required

                The ID of the team

                Body parameters

                application/json

                users

                array

                required

                The list of user IDs

                Response
                200

                OK

                Expand all
                Copy code
                  • true
                  • [ ... ]

                  Subscribe to Pipedrive’s Developer Newsletter