NOTE: User must be logged in as admin to access this API

URL : api/admin/daily-report/createOrUpdateReport

Method : POST

Query Parameters :

 

Parameter Type Possible Values Required/Optional Description
name String Optional Name of Daily Report
report_id Integer id Required Daily report Id.
component_ids Array Required [Daily Report Template Should Need Minimum Single Widget] It consists of widget key name and order number.
component_ids[0][component_id] String Required The key name of each component
component_ids[0][order] Integer Required The order value of components helps to ascend the components in the Email template.

Response:

{
"success": true,
"message": "Daily Report updated successfully"
}