MDM NEW
Search
Function: search Type: API Endpoint (POST)
Purpose: This function searches for data in specified tables based on the provided search values. It first checks if the table exists in the actual database. Depending on the presence of specific columns and values, it queries the relevant data.
URL: POST /api/new_mdm/search
Parameters:
- request (Request): The request object.
- search_values (SearchValues): An object containing the table and optional columns to search.
- Customer_Key (str, optional): A base64 encoded header string containing lscode and firmcode.
Returns:
- A JSON response indicating the success or failure of the operation.
- If successful, returns the queried data.
- If the Customer_Key is invalid or if the table is not found, it returns a failure message.
Exceptions:
- Handles exceptions during base64 decoding and database operations, returning an appropriate error message.
post/api/new_mdm/search
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.
Headers
Customer-Keystring nullable
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 3 revisions of this API.