Skip to content

Commit

Permalink
feat: user invite resend
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Dec 14, 2024
1 parent fc75083 commit 35c43fa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions portkey_ai/api_resources/apis/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ def delete(self, *, invite_id: str) -> Any:
headers={},
)

def resend(self, *, invite_id: str) -> Any:
return self._post(
f"{PortkeyApiPaths.INVITE_API}/{invite_id}/resend",
body=None,
params=None,
cast_to=GenericResponse,
stream=False,
stream_cls=None,
headers={},
)


class Workspaces(APIResource):
def __init__(self, client: APIClient) -> None:
Expand Down Expand Up @@ -454,6 +465,17 @@ async def delete(self, *, user_id: str) -> Any:
headers={},
)

async def resend(self, *, invite_id: str) -> Any:
return await self._post(
f"{PortkeyApiPaths.INVITE_API}/{invite_id}/resend",
body=None,
params=None,
cast_to=GenericResponse,
stream=False,
stream_cls=None,
headers={},
)


class AsyncInvites(AsyncAPIResource):
def __init__(self, client: AsyncAPIClient) -> None:
Expand Down

0 comments on commit 35c43fa

Please sign in to comment.