Report Templates API

List Report Templates

Endpoint: POST /reports/templates/list

Request JSON:

{ "offset": 0, "limit": 10 }

CURL Command:

curl -X POST http://yourdomain.com/reports/templates/list \ -H "Content-Type: application/json" \ -d '{"offset": 0, "limit": 10}'

Get Report Template by ID

Endpoint: POST /reports/templates/get

Request JSON:

{ "id": 1 }

CURL Command:

curl -X POST http://yourdomain.com/reports/templates/get \ -H "Content-Type: application/json" \ -d '{"id": 1}'

Save Report Template

Endpoint: POST /reports/templates/save

Request JSON:

{ "id": 1, "html_template": "<html>...new content...</html>" }

CURL Command:

curl -X POST http://yourdomain.com/reports/templates/save \ -H "Content-Type: application/json" \ -d '{"id": 1, "html_template": "...new content..."}'

Reset Report Template

Endpoint: POST /reports/templates/reset

Request JSON:

{ "id": 1 }

CURL Command:

curl -X POST http://yourdomain.com/reports/templates/reset \ -H "Content-Type: application/json" \ -d '{"id": 1}'