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 | null | Optional | If a daily report exists, Id should be given. |
| 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 component which helps to ascend the components in Email template. |
Response:
{
"success": true,
"message": "Daily Report created successfully"
}