Sign in

Create post

documented

Create a new post.

POST /sites/{site}/posts/newPostsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://public-api.wordpress.com/rest/v1/sites/{{$site}}/posts/new" \\n  -X POST \\n  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \\n  -H 'Content-Type: application/json' \\n  -H 'Accept: application/json' \\n  -d '{"title": "{{$title}}", "content": "{{$content}}", "date": "{{$date}}", "excerpt": "{{$excerpt}}", "slug": "{{$slug}}", "status": "{{$status}}"}'