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!