go to pipedrive.com
Log inSign up

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

Returns data about teams within the company.

Deprecated endpoint

Request
GET

/v1/legacyTeams

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

    Returns data about a specific team.

    Deprecated endpoint

    Request
    GET

    /v1/legacyTeams/{id}

    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

      Returns a list of all user IDs within a team.

      Deprecated endpoint

      Request
      GET

      /v1/legacyTeams/{id}/users

      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

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

        Deprecated endpoint

        Request
        GET

        /v1/legacyTeams/user/{id}

        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

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

          Deprecated endpoint

          Request
          POST

          /v1/legacyTeams

          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

            Adds users to an existing team.

            Deprecated endpoint

            Request
            POST

            /v1/legacyTeams/{id}/users

            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

              Updates an existing team and returns the updated object.

              Deprecated endpoint

              Request
              PUT

              /v1/legacyTeams/{id}

              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

                Deletes users from an existing team.

                Deprecated endpoint

                Request
                DELETE

                /v1/legacyTeams/{id}/users

                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