Skip to content

Commit

Permalink
Merge pull request #148 from Portkey-AI/feat/resendInvite
Browse files Browse the repository at this point in the history
User invite resend
  • Loading branch information
csgulati09 authored Dec 26, 2024
2 parents cc8ccf9 + 959a048 commit c8e310e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/apis/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,26 @@ export class Invites extends ApiResource {
);
return response;
}

resend(
_body: UserInviteGetParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<any> {
const body = _body;
const inviteId = body.inviteId;
if (params) {
this.client.customHeaders = {
...this.client.customHeaders,
...createHeaders({ ...params }),
};
}

const response = this.post<any>(`/admin/users/invites/${inviteId}/resend`, {
...opts,
});
return response;
}
}

export class Workspaces extends ApiResource {
Expand Down

0 comments on commit c8e310e

Please sign in to comment.