• Resolved quarfie

    (@quarfie)


    Haven’t used WordPress API before so not sure if I have the right idea. The following results in a draft job posting record being created but it is empty – no title, content, or any other data is populated. Even the job-types array is empty.

    curl -X POST https://example.com/wp-json/wp/v2/job-listings/ -u "user:pw" -d @$json

    Where $json is:

    {
    	"content": "html content",
    	"job-types": [256],
    	"meta": {
    		"_application": "[email protected]",
    		"_job_location": "The Moon"
    	},
    	"status": "draft",
    	"title": "Astronaut"
    }

    What am I doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create Job Post via REST API’ is closed to new replies.