• Resolved and11170330

    (@and11170330)


    Hi, the REST API works in creating “tags” but failed in creating “listings” with the following error:

    curl --request POST --user admin:password https://www.example.com/wp-json/directorist/v1/listings -d "name=my_new_listing"
    
    {"code":"invalid-method","message":"Method 'WP_REST_Controller::create_item' not implemented. Must be overridden in subclass.","data":{"status":405}}

    Thanks very much for your help.

Viewing 1 replies (of 1 total)
  • Hey @and11170330,

    Our REST API doesn’t have write access for Listings at the moment, only ready access. We do have plans to bring it in the future.

    Regards,
    Mahdi.

Viewing 1 replies (of 1 total)

The topic ‘REST API cannot create Listings’ is closed to new replies.