cyphermed.api.users.create_user

def sync_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_user_body.CreateUserBody) -> cyphermed.types.Response[cyphermed.models.new_user_info.NewUserInfo]:

Create User

Create a new user

Args: body (CreateUserBody): Request payload for POST /users

Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns: Response[NewUserInfo]

def sync( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_user_body.CreateUserBody) -> Optional[cyphermed.models.new_user_info.NewUserInfo]:

Create User

Create a new user

Args: body (CreateUserBody): Request payload for POST /users

Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns: NewUserInfo

async def asyncio_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_user_body.CreateUserBody) -> cyphermed.types.Response[cyphermed.models.new_user_info.NewUserInfo]:

Create User

Create a new user

Args: body (CreateUserBody): Request payload for POST /users

Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns: Response[NewUserInfo]

async def asyncio( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_user_body.CreateUserBody) -> Optional[cyphermed.models.new_user_info.NewUserInfo]:

Create User

Create a new user

Args: body (CreateUserBody): Request payload for POST /users

Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.

Returns: NewUserInfo