OPPORTUNITIES

Put Opportunities Data

Update opportunities data in both PostgreSQL and ClickHouse databases and OS(TODO: to be removed).

Args: db: Database session for PostgreSQL access auth: Authentication token containing user info tenant: Tenant identifier tenant_alias: Alias for the tenant opportunities_data_request: Request containing opportunity changes client: OpenSearch client for legacy updates (TODO: to be removed) clickhouse_client: ClickHouse client for updating global_opportunities_aggregated table is_operation_allowed: Flag indicating if operation is allowed for tenant

Returns: StandardResponse with status and optional message

post/opportunities/

Headers

x-tenantstring required

Request body

user_idinteger nullable
start_datestring date-time nullable
end_datestring date-time nullable

Response

Successful Response

okboolean required

Changes

Changed in 2 of the 55 revisions of this API.2

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property //

      new-optional-request-property