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}'
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}'
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..."}'
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}'