| Variable | Type | Description |
|---|---|---|
| list_id | int|string | The ID of the list in which the draft belongs |
| draft_id | string | The ID of the draft for which to parse the HTML code with Handlebars |
| compile_params | struct|array | The parameters for the Handlebars compilation of the HTML code |
| Parameter | Description |
|---|---|
| initial_html | The initial HTML |
| parsed_html | The parsed HTML |
| compile_params | The compile params |
{ "initial_html": "the initial html code", "parsed_html": "the parsed html code", "compile_params": { "param": "value" } }
| Code | Message | Description |
|---|---|---|
| 407 | Missing required param list_id | list_id param is required |
| 201 | Database ERROR loading list. | Invalid access to list_id |
| 407 | Missing required param draft_id | draft_id param is required |
| 201 | Database ERROR loading draft. | Invalid access to draft_id |
| 12001 | Could not parse the HTML with Handlebars | Could not parse the HTML with Handlebars |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param draft_id", "code": 407 }
{ "err": true, "message": "Database ERROR loading draft.", "code": 201 }
{ "err": true, "message": "Could not parse the HTML with Handlebars.", "code": 12001 }