Skip to content

Commit 6508e05

Browse files
author
pipedrive-bot
committed
Build 342 - version-patch
1 parent 0b89578 commit 6508e05

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ 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+
### Fixed
11+
- Fixed OAuth scopes on six v2 deal sub-resource write operations (`POST /api/v2/deals/{id}/discounts`, `PATCH`/`DELETE /api/v2/deals/{id}/discounts/{discount_id}`, `POST /api/v2/deals/{id}/installments`, `PATCH`/`DELETE /api/v2/deals/{id}/installments/{installment_id}`) that incorrectly listed `deals:read` alongside `deals:full`, copied from their sibling GET operations - these are now `deals:full` only, matching their read-write nature
1012

1113
## [33.7.0] - 2026-09-08
1214
### Added

src/versions/v2/api/deal-installments-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co
7171

7272
// authentication oauth2 required
7373
// oauth required
74-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
74+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
7575

7676

7777

@@ -177,7 +177,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co
177177

178178
// authentication oauth2 required
179179
// oauth required
180-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
180+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
181181

182182

183183

@@ -226,7 +226,7 @@ export const DealInstallmentsApiAxiosParamCreator = function (configuration?: Co
226226

227227
// authentication oauth2 required
228228
// oauth required
229-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
229+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
230230

231231

232232

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
226226

227227
// authentication oauth2 required
228228
// oauth required
229-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
229+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
230230

231231

232232

@@ -847,7 +847,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
847847

848848
// authentication oauth2 required
849849
// oauth required
850-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
850+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
851851

852852

853853

@@ -980,7 +980,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
980980

981981
// authentication oauth2 required
982982
// oauth required
983-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration)
983+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
984984

985985

986986

0 commit comments

Comments
 (0)