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

Query parameters

flaginteger

Headers

customer-keystring required

Request body

Response

Successful Response

{"stackTrail":"paths:/api/new_mdm/insert_custom_reference_table:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.