Using the REST API documentation, I'm attempting to create a template with some custom formatting. However, any tags I include are added as string literals, instead of being used as a tag.
A very simple example: I created a new (space) template manually via the UI. Getting this template from the REST API, I can see the following body data:
<span>"body"</span>: {
<span>"storage"</span>: {
<span>"value"</span>: <span>"<at:declarations /><p>Some body content here.</p>"</span>,
<span>"representation"</span>: <span>"storage"</span>
}
},I delete said template and attempt to create the template again via a curl call; using the documentation.
curl -k --request POST \ --url 'https://myurl' \
--user '[REMOVED]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Awesome Template",
"templateType": "page",
"body": {
"storage": {
"value": "<at:declarations /><p>Some body content here.<p>",
"representation": "storage"
}
},
"description": "Some Description",
"space": {
"key": "someKey"
}
}'
The call returns successfully and a template is created. However, the contents are just the literal string value: "<at:declarations /><p>Some body content here.<p>". Attempting to use escape sequences (&'s) results in the same thing. What am I missing?