MobileApp

Update Template Pages

Changed on

Function: update_template_pages Type: API Endpoint (POST)

Purpose: Updates the template pages associated with a given template code, removing any reports that are no longer present in the incoming data.

Headers:

  • Customer_Key (str, required): Encoded customer key for authorization.

Parameters:

  • template_data (TemplatePagesRequest, required): A JSON object containing a list of template pages to update.

Response:

  • Returns a success message indicating that the template page was updated successfully.
  • Returns a JSON object with an error message if the customer key is invalid or if any internal error occurs.

Exceptions:

  • Raises a 400 error if the customer key is invalid.
  • Raises a 500 error in case of any internal server error.
post/api/MobileApp/templates/update_template_pages

Request

Headers

Customer-Keystring required

Request body

Response

Successful Response

unknown required

Changes