Title: POST 401 code rest_cannot_create
Last modified: July 28, 2019

---

# POST 401 code rest_cannot_create

 *  [Marko Radulovic](https://wordpress.org/support/users/upss1988/)
 * (@upss1988)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/post-401-code-rest_cannot_create/)
 * Hello,
 * From a couple of websites, we have an error, and on some website, everything 
   works well. Here is the error:
 *     ```
       {code: "rest_cannot_create", message: "Sorry, you are not allowed to create posts as this user.",…}
       code: "rest_cannot_create"
       data: {status: 401}
       status: 401
       message: "Sorry, you are not allowed to create posts as this user."
       ```
   
 * Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpost-401-code-rest_cannot_create%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘POST 401 code rest_cannot_create’ is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [Marko Radulovic](https://wordpress.org/support/users/upss1988/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/post-401-code-rest_cannot_create/)
 * Status: not resolved