Create category
documentedCreate a new category.
POST /3dCartWebAPI/v1/CategoriesCategoryno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v1/Categories" \
-X POST \\
-H "Content-Type: application/json" \\
-H "Accept: application/json" \\
-H "SecureURL: {{SHIFT4SHOP_SECURE_URL}}" \\
-H "PrivateKey: {{SHIFT4SHOP_PRIVATE_KEY}}" \\
-H "Token: {{SHIFT4SHOP_API_KEY}}" \\
-d '{"CategoryName": "{{$title}}", "Link": "{{$link}}", "CategoryDescription": "{{$description}}", "CategoryIcon": "{{$icon}}", "CategoryMain": {{$is_main}}, "CategoryParent": {{$parent_id}}, "Sorting": {{$sorting}}, "Hide": {{$hide}}, "UserID": "{{$user_id}}"}'