Create a page content with an template

Hello!

I’m trying to create a page content with an template.

I already have the template. I did a get using the /wiki/rest/api/template/TemplateID, so I get body of the template.

  "body": {
    "storage": {
      "value": "HERE I HAD THE TEMPLATE VALUE",
      "representation": "storage",
      "embeddedContent": []
    }
  }

So, I tryed to make a POST with /wiki/rest/api/content/. But when I use the body value of the template I get the error {"The remote server returned an error: (500) Internal Server Error."}.

Does anybody knows how to create a page content using a template? Any suggestion?

Hello,

Did you find a solution ?

Have a nice day