Support » Plugin: JSON API User » Publish posts in Draft status

  • Thanks for this plugins! I’m using pretty much all of them including the JSON User Plus. They are exactly what I needed for my mobile app.

    In my app, I’m using an event plugin that creates a custom post post type that requires some specific post-meta fields (date, time, location, etc).

    I have managed to create the post in draft status with one request, and add the post-meta needed with another. But I need to know is, how to publish a post that is currently in draft status?

    When I try to us the “update_post” controller and add the post_id, I get error: “Post not found.”

    Something tells me this is easy, but I can’t figure it out.

    https://wordpress.org/plugins/json-api-user/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    yes, you are right. There is a bug in this endpoint.

    I have now fixed it. please email me and I will send you updated files.

    Thanks

    Thread Starter jnashdesign

    (@jnashdesign)

    Thanks for the quick reply!
    I’ve sent you an email.

    Thread Starter jnashdesign

    (@jnashdesign)

    Thanks Ali, but I’m still getting an error.
    {“status”:”error”,”error”:”Could not update post.”}

    Plugin Author Ali Qureshi

    (@parorrey)

    Hi,

    I was away on weekend. I will test it today and let you know.

    Thanks

    Plugin Author Ali Qureshi

    (@parorrey)

    Just tried and ‘update_post’ endpoint works fine. Please make sure you use the author user to update post like this:

    update_post/?key=553789ba61dc1&post_id=61&cookie=admin|1455538226|UCMQfduwSD&status=publish

    Thread Starter jnashdesign

    (@jnashdesign)

    It’s still not working for me.

    I’ll send you an email directly showing you the full process of how I’m doing it. If you say it’s working, I believe you. There must be something I’m doing wrong.

    Again, thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Publish posts in Draft status’ is closed to new replies.