Trouble creating page via API

Post Reply
dontodd
Ssr. Bludit
Posts: 17
Joined: Tue Dec 19, 2017 1:17 am

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!
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
can you check the php_error.log ?

What version of Bludit are you using ?
dontodd
Ssr. Bludit
Posts: 17
Joined: Tue Dec 19, 2017 1:17 am

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
Post Reply