Page 1 of 1

Trouble creating page via API

Posted: Fri Apr 10, 2020 9:57 pm
by dontodd
Here's the command I'm using:

Code: Select all

curl -X POST -H "Content-Type: application/json" -d @data.json "https://redacted.com/api/pages/demo-from-api"
and the data.json file:

Code: Select all

{
	"token": "redacted"
	"authentication": "redacted"
	"title": "Demo from API"
	"content": "Whoa, this is from the API."
	"tags": "demo, test, api"
}
and the result is:

Code: Select all

<!--
(several blank lines)
-->
I'm just following this example.

Thanks for any tips!

Re: Trouble creating page via API

Posted: Mon Apr 13, 2020 4:55 pm
by diego
Hi,
can you check the php_error.log ?

What version of Bludit are you using ?

Re: Trouble creating page via API

Posted: Mon Apr 13, 2020 7:21 pm
by dontodd
Using version 3.12.0.

The error log just contains these lines:

path/to/bludit/bl-content/workspaces/simple-stats/*.log
path/to/bludit/bl-languages/*.json