Authentication Emails

Upsert

post

Upsert an Authentication Email entry.

Creates a new Authentication Email if the provided id does not exist, or updates the existing Authentication Email with the given id.

Args: request (AuthenticationEmail): The Authentication Email data to insert or update. db (AsyncSession): The database session dependency.

Returns: JSONResponse: A JSON response containing the Authentication Email data that was upserted.

Raises: HTTPException: If the operation encounters an unexpected error (not currently implemented, but can be added for error handling).

Notes: - Uses FastCRUD for abstracted DB operations. - Relies on the id field to determine insert vs update.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body

Authentication Email model.

idintegerRequired
patternstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/authentication-emails/upsert

No content

Get

get

Read multiple AuthenticationEmailModel rows from the database.

  • Use page & itemsPerPage for paginated results

  • Use offset & limit for specific ranges

  • Returns paginated response when using page/itemsPerPage

  • Returns simple list response when using offset/limit

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
offsetany ofOptional

Offset for unpaginated queries

integerOptional
or
nullOptional
limitany ofOptional

Limit for unpaginated queries

integerOptional
or
nullOptional
pageany ofOptional

Page number

integerOptional
or
nullOptional
itemsPerPageany ofOptional

Number of items per page

integerOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany of
or
get
/authentication-emails

Create

post

Create a new AuthenticationEmailModel row in the database.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body

Create Authentication Email model.

patternstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/authentication-emails

No content

Get

get

Read a single AuthenticationEmailModel row from the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Responses
chevron-right
200

Successful Response

application/json
get
/authentication-emails/{id}

Delete

delete

Delete a AuthenticationEmailModel row from the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
delete
/authentication-emails/{id}

No content

Update

patch

Update an existing AuthenticationEmailModel row in the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Body

Create Authentication Email model.

patternstringRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
patch
/authentication-emails/{id}

No content

Last updated