Trouble creating page via API

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

Fri Apr 10, 2020 9:57 pm

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: 733
Joined: Sat May 16, 2015 2:53 pm
Contact:

Mon Apr 13, 2020 4:55 pm

Hi,
can you check the php_error.log ?

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

Mon Apr 13, 2020 7:21 pm

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