Deep Search Profiles

Upsert

post

Upsert a Deep Search Profile entry.

Creates a new Deep Search Profile if the provided id does not exist, or updates the existing Deep Search Profile with the given id.

Args: request (DSProfile): The Deep Search Profile data to insert or update. db (AsyncSession): The database session dependency.

Returns: JSONResponse: A JSON response containing the Deep Search Profile 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

Deep Search Profile model.

codenamestringRequired
titlestringRequired
descriptionstringRequired
providersstringRequired
additional_querystringRequired
filtersstringRequired
updated_timestring · date-timeOptionalDefault: 2025-12-02T17:36:18.514374
expand_querybooleanRequired
query_system_promptintegerOptional
query_user_promptintegerOptional
idintegerRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/ds-profiles/upsert

No content

Read

get

Get a Deep Search Profile by ID.

Args: id (int): The ID of the Deep Search Profile. db (AsyncSession): The database session.

Returns: JSONResponse: A JSON response containing the Deep Search Profile.

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
get
/ds-profiles/{id}

No content

Delete

delete

Delete a DSProfileModel 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
/ds-profiles/{id}

No content

Update

patch

Update an existing DSProfileModel 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 Deep Search Profile model.

codenamestringRequired
titlestringRequired
descriptionstringRequired
providersstringRequired
additional_querystringRequired
filtersstringRequired
updated_timestring · date-timeOptionalDefault: 2025-12-02T17:36:18.514374
expand_querybooleanRequired
query_system_promptintegerOptional
query_user_promptintegerOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
patch
/ds-profiles/{id}

No content

List

get

Get a paginated list of Deep Search Profiles.

Args: request (SmartSearchListBrowseRequest): The request object containing pagination parameters. db (AsyncSession): The database session.

Returns: JSONResponse: A JSON response containing the paginated list of Deep Search Profiles.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
pageintegerOptionalDefault: 1
itemsPerPageinteger · min: 1 · max: 100OptionalDefault: 10
Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/ds-profiles

No content

Create

post

Create a new DSProfileModel row in the database.

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

Create Deep Search Profile model.

codenamestringRequired
titlestringRequired
descriptionstringRequired
providersstringRequired
additional_querystringRequired
filtersstringRequired
updated_timestring · date-timeOptionalDefault: 2025-12-02T17:36:18.514374
expand_querybooleanRequired
query_system_promptintegerOptional
query_user_promptintegerOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/ds-profiles

No content

Last updated