MDM NEW
Insert Custom Reference Table
Function: insert_custom_reference_table Type: API Endpoint (POST)
Purpose:
Inserts custom reference table details into the database.
Parameters:
- request: The HTTP request object.
- customer_key (Header, required): A base64 encoded string containing lscode and firmcode for the customer.
- table_details: The details of the custom reference table to be inserted.
- flag (int, optional): The flag indicating whether to insert custom reference table details (1) or custom reference table reference details (2). Defaults to 1.
- current_user (str): The current user performing the operation, obtained via dependency injection.
Returns:
A JSON response containing the message "Data inserted successfully".
Exceptions:
- HTTPException: If any exception occurs during the process, it raises an HTTPException with a 500 status code and the exception message.
post/api/new_mdm/insert_custom_reference_table
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
flaginteger
Headers
customer-keystring required
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 3 revisions of this API.