cyphermed.api.roles.create_role

def sync_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_body.CreateRoleBody) -> cyphermed.types.Response[cyphermed.models.new_role_info.NewRoleInfo]:

Create Role

Create a new role

Args: body (CreateRoleBody): Which Role fields to include in request bodies

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[NewRoleInfo]

def sync( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_body.CreateRoleBody) -> Optional[cyphermed.models.new_role_info.NewRoleInfo]:

Create Role

Create a new role

Args: body (CreateRoleBody): Which Role fields to include in request bodies

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: NewRoleInfo

async def asyncio_detailed( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_body.CreateRoleBody) -> cyphermed.types.Response[cyphermed.models.new_role_info.NewRoleInfo]:

Create Role

Create a new role

Args: body (CreateRoleBody): Which Role fields to include in request bodies

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[NewRoleInfo]

async def asyncio( *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_body.CreateRoleBody) -> Optional[cyphermed.models.new_role_info.NewRoleInfo]:

Create Role

Create a new role

Args: body (CreateRoleBody): Which Role fields to include in request bodies

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: NewRoleInfo