Including published date for update requests

Howdy. :slight_smile:

I’m sure that I’m missing something super obvious, but I am having trouble trying to send requests to update a post while including a published date. Including the published date when creating a post works as expected and schedules it if the date is in the future. However, if I have scheduled the post and want to change the date, the request will fail. It fails with a status code of -1, which isn’t even a valid HTTP status code, so I’m having a hard time trying to figure out what is returning/causing this.

Here’s the JavaScript object structure that I have been trying.

    “action”: “update”,
    “url”: postURL,
    “replace”: {
        “post-status”: [postStatus],
        “content”: [content],
        “category”: [categories],
        “published”: [publishedDate]

I also tried the published property at the top level, outside of the replace object, but it also fails.

Anyone have any ideas on what I’m missing here?