Documents API for template endpoints

- Correct response structure now returned
[#80341132]
Templates set endpoints can use empty html or text

[#80341146]