Skip to content

Commit

Permalink
fix: sending default value for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Jan 31, 2025
1 parent f8a5be9 commit 13db04a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apis/apiKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class ApiKeys extends ApiResource {
opts?: RequestOptions
): APIPromise<ApiKeysAddResponse> {
const body = _body;
body.defaults = body.defaults || { config_id: null, metadata: null };
const type = body.type;
const subType = body['sub-type'];
if (params) {
Expand Down Expand Up @@ -113,6 +114,7 @@ export class ApiKeys extends ApiResource {
opts?: RequestOptions
): APIPromise<any> {
const body = _body;
body.defaults = body.defaults || { config_id: null, metadata: null };
const id = body.id;
if (params) {
this.client.customHeaders = {
Expand Down

0 comments on commit 13db04a

Please sign in to comment.