Skip to content

Commit ac6df3e

Browse files
author
pipedrive-bot
committed
Build 283 - version-minor
1 parent b85041e commit ac6df3e

11 files changed

+415
-26
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
77
For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
88

99
## [Unreleased]
10+
### Added
11+
- Added `POST /deals/{id}/products/bulk` endpoint for creating multiple deal products at once (max 100 per request)
12+
- Added `DELETE /deals/{id}/products` endpoint for deleting multiple deal products at once (max 100 per request)
1013

1114
## [29.2.4] - 2025-09-26
1215
### Fixed

docs/v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ BetaApi | uploadProductImage | **POST** /products/{id}/images | Upload an image
2424
DealsApi | addDeal | **POST** /deals | Add a new deal
2525
DealsApi | addDealFollower | **POST** /deals/{id}/followers | Add a follower to a deal
2626
DealsApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal
27+
DealsApi | addManyDealProducts | **POST** /deals/{id}/products/bulk | Add multiple products to a deal
2728
DealsApi | convertDealToLead | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
2829
DealsApi | deleteAdditionalDiscount | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal
2930
DealsApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal
3031
DealsApi | deleteDealFollower | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal
3132
DealsApi | deleteDealProduct | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal
3233
DealsApi | deleteInstallment | **DELETE** /deals/{id}/installments/{installment_id} | Delete an installment from a deal
34+
DealsApi | deleteManyDealProducts | **DELETE** /deals/{id}/products | Delete many products from a deal
3335
DealsApi | getAdditionalDiscounts | **GET** /deals/{id}/discounts | List discounts added to a deal
3436
DealsApi | getArchivedDeals | **GET** /deals/archived | Get all archived deals
3537
DealsApi | getDeal | **GET** /deals/{id} | Get details of a deal

src/versions/v1/api/item-search-api.ts

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.

src/versions/v2/api/deals-api.ts

Lines changed: 219 additions & 12 deletions
Large diffs are not rendered by default.

src/versions/v2/api/item-search-api.ts

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { GetDealsProductsResponseDataInner } from './get-deals-products-response-data-inner';
19+
20+
/**
21+
*
22+
* @export
23+
* @interface AddManyDealProductResponse
24+
*/
25+
export interface AddManyDealProductResponse {
26+
/**
27+
* If the response is successful or not
28+
* @type {boolean}
29+
*/
30+
'success'?: boolean;
31+
/**
32+
* Array of created deal products
33+
* @type {Array<GetDealsProductsResponseDataInner>}
34+
*/
35+
'data'?: Array<GetDealsProductsResponseDataInner>;
36+
}
37+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { AddDealProductRequest } from './add-deal-product-request';
19+
20+
/**
21+
*
22+
* @export
23+
* @interface CreateManyDealProductRequest
24+
*/
25+
export interface CreateManyDealProductRequest {
26+
/**
27+
* Array of products to attach to the deal. See the single product endpoint (https://developers.pipedrive.com/docs/api/v1/Deals#addDealProduct) for the expected format of array items.
28+
* @type {Array<AddDealProductRequest>}
29+
*/
30+
'data': Array<AddDealProductRequest>;
31+
}
32+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
*
19+
* @export
20+
* @interface DeleteManyDealProductResponseAdditionalData
21+
*/
22+
export interface DeleteManyDealProductResponseAdditionalData {
23+
/**
24+
* Whether there are more products to delete (when the deal has more than 100 products)
25+
* @type {boolean}
26+
*/
27+
'more_items_in_collection'?: boolean;
28+
}
29+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
*
19+
* @export
20+
* @interface DeleteManyDealProductResponseData
21+
*/
22+
export interface DeleteManyDealProductResponseData {
23+
/**
24+
* Array of IDs of products that were deleted from the deal
25+
* @type {Array<number>}
26+
*/
27+
'ids'?: Array<number>;
28+
}
29+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Pipedrive API v2
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 2.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { DeleteManyDealProductResponseAdditionalData } from './delete-many-deal-product-response-additional-data';
19+
// May contain unused imports in some cases
20+
// @ts-ignore
21+
import { DeleteManyDealProductResponseData } from './delete-many-deal-product-response-data';
22+
23+
/**
24+
*
25+
* @export
26+
* @interface DeleteManyDealProductResponse
27+
*/
28+
export interface DeleteManyDealProductResponse {
29+
/**
30+
* If the response is successful or not
31+
* @type {boolean}
32+
*/
33+
'success'?: boolean;
34+
/**
35+
*
36+
* @type {DeleteManyDealProductResponseData}
37+
*/
38+
'data'?: DeleteManyDealProductResponseData;
39+
/**
40+
*
41+
* @type {DeleteManyDealProductResponseAdditionalData}
42+
*/
43+
'additional_data'?: DeleteManyDealProductResponseAdditionalData | null;
44+
}
45+

0 commit comments

Comments
 (0)