Title: Can&#8217;t edit post status
Last modified: February 18, 2020

---

# Can’t edit post status

 *  [lucascerliani](https://wordpress.org/support/users/lucascerliani/)
 * (@lucascerliani)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cant-edit-post-status/)
 * Hi,
    I’m having problems to change the post status from ‘pending’ to a custom
   post status. I’m doing this inside Gutenberg editor with `wp.data.dispatch('core/
   editor').editPost({ status: 'mandado_editar'});`. This line executes well, the
   problem is when I save the post, it throws this error: “Failed to update. Message
   error: Not valid parameter: status”. Something weird is that if I try to change
   the post status to ‘draft’ it worked fine. Does the editPost() action in Gutenberg
   supports a custom post status as parameter?
 * Thank you!
    Lucas.
    -  This topic was modified 6 years, 3 months ago by [lucascerliani](https://wordpress.org/support/users/lucascerliani/).

Viewing 1 replies (of 1 total)

 *  [Tyler](https://wordpress.org/support/users/tylerthedude/)
 * (@tylerthedude)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cant-edit-post-status/#post-12498995)
 * Hi Lucas,
 * The error returns, “Not valid parameter: status”, which indicates that the editPost
   method does not know the parameter in question. I’m not familiar with an alternative
   to what you’re trying to accomplish, but you should look at the Block Editor 
   Handbook for the edit post module and hopefully you’ll find what you need. I 
   will attach the link [here](https://developer.wordpress.org/block-editor/packages/packages-edit-post/).
 * Regards,
    Tyler

Viewing 1 replies (of 1 total)

The topic ‘Can’t edit post status’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Tyler](https://wordpress.org/support/users/tylerthedude/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/cant-edit-post-status/#post-12498995)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
