• 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)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘woocommerce_rest_cannot_create’ is closed to new replies.