cyphermed.api.roles.create_role_access

def sync_detailed( role_id: str, account_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_access_body.CreateRoleAccessBody) -> cyphermed.types.Response[cyphermed.models.success.Success]:

Create Role Access

Add access for a role

Args: role_id (str): account_id (str): body (CreateRoleAccessBody): Body for POST /roles/{id}/access

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

def sync( role_id: str, account_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_access_body.CreateRoleAccessBody) -> Optional[cyphermed.models.success.Success]:

Create Role Access

Add access for a role

Args: role_id (str): account_id (str): body (CreateRoleAccessBody): Body for POST /roles/{id}/access

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

async def asyncio_detailed( role_id: str, account_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_access_body.CreateRoleAccessBody) -> cyphermed.types.Response[cyphermed.models.success.Success]:

Create Role Access

Add access for a role

Args: role_id (str): account_id (str): body (CreateRoleAccessBody): Body for POST /roles/{id}/access

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

async def asyncio( role_id: str, account_id: str, *, client: cyphermed.client.AuthenticatedClient, body: cyphermed.models.create_role_access_body.CreateRoleAccessBody) -> Optional[cyphermed.models.success.Success]:

Create Role Access

Add access for a role

Args: role_id (str): account_id (str): body (CreateRoleAccessBody): Body for POST /roles/{id}/access

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