Trouble creating page via API
Posted: Fri Apr 10, 2020 9:57 pm
Here's the command I'm using:
and the data.json file:
and the result is:
I'm just following this example.
Thanks for any tips!
Code: Select all
curl -X POST -H "Content-Type: application/json" -d @data.json "https://redacted.com/api/pages/demo-from-api"
Code: Select all
{
"token": "redacted"
"authentication": "redacted"
"title": "Demo from API"
"content": "Whoa, this is from the API."
"tags": "demo, test, api"
}
Code: Select all
<!--
(several blank lines)
-->
Thanks for any tips!