Refresh Dataset
Refreshes a Power BI dataset for a specific customer and firm.
This endpoint decodes the provided customer key and report code, retrieves relevant customer and workspace details, and triggers a dataset refresh in Power BI using the specified report code.
Args: request (Request): The HTTP request object. customer_key (Annotated[Union[str], Header]): A base64 encoded string containing 'lscode' and 'firmcode'. report_code (Annotated[Union[str], Header]): A base64 encoded report code. db (Session): The database session dependency.
Returns: JSONResponse: A response indicating the success or failure of the dataset refresh operation. It returns a success message if the refresh request is accepted by Power BI, otherwise an error message.
Raises: HTTPException: If settings could not be retrieved, customer or firm details are not found. JSONResponse: For any other exceptions during the process with a 500 status code.
Request
- Base URLhttps://api.leapsurgebi.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Headers
Response
Successful Response
Changes
No recorded changes to this operation across all 3 revisions of this API.