Skip to content

Commit 499670b

Browse files
authored
[CUST-5085] fix(credentials): change update method from PUT to PATCH (#712)
1 parent 7e55e6a commit 499670b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class Credentials extends Resource {
129129
requestBody,
130130
overrides,
131131
}: UpdateCredentialParams & Overrides): Promise<NylasResponse<Credential>> {
132-
return super._update({
132+
return super._updatePatch({
133133
path: makePathParams('/v3/connectors/{provider}/creds/{credentialsId}', {
134134
provider,
135135
credentialsId,

tests/resources/credentials.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('Credentials', () => {
166166
});
167167

168168
expect(apiClient.request).toHaveBeenCalledWith({
169-
method: 'PUT',
169+
method: 'PATCH',
170170
path: '/v3/connectors/microsoft/creds/microsoft-123',
171171
body: {
172172
name: 'Changed Name',

0 commit comments

Comments
 (0)