Title: woocommerce_rest_cannot_create
Last modified: May 29, 2022

---

# woocommerce_rest_cannot_create

 *  [Matt](https://wordpress.org/support/users/mattsaay/)
 * (@mattsaay)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-3/)
 * Hi
 * I realize that are many posts with same problem, which I went through. Still 
   I could not find any resolve. For this reason I’m including as much info of my
   situation as possible.
 * **My situation:**
    I’m trying to post Categories to the WooCommerce API.
 * **My environment (Windows 10):**
    XAMPP v8.1.6 XAMPP Control Panel v3.3.0 WordPress
   version: 6.0 WooCommerce version: 6.5.1 WooCommerce REST API package: 6.5.1 PHP
   version: 8.1.6 MySQL version: 10.4.24-MariaD API Key Access read and write
 * **JSON Call:**
    {“parent”:””,”slug”:”ladies”,”name”:”Ladies”,”description”:”Ladies”,”
   display”:”default”}
 * **JSON Response:**
    {“code”:”woocommerce_rest_cannot_create”,”message”:” “,”data”:{“
   status”:401}} orry, you are not allowed to create resources.
 * **.htaccess:**
    <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* – [E
   =HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /myshop/wordpress/ # RewriteRule
   ^index\.php$ – [L] RewriteRule ^index\.php$ – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},
   L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule./
   myshop/wordpress/index.php [L] </IfModule>
 * # END WordPress
 * **Please Help**

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-3/#post-15689509)
 * I recommend asking at [https://wordpress.org/support/plugin/woocommerce/#new-post](https://wordpress.org/support/plugin/woocommerce/#new-post)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [Matt](https://wordpress.org/support/users/mattsaay/)
 * (@mattsaay)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-3/#post-15689523)
 * Thanks. Will try.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-3/#post-15689534)
 * continued at [https://wordpress.org/support/topic/woocommerce_rest_cannot_create-4/](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-4/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘woocommerce_rest_cannot_create’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_rest_cannot_create-3/#post-15689534)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
