Create category
documentedCreate a new category.
POST /rest/{store_code}/V1/categoriesCatalogno 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://{{$host}}/rest/{{$store_code}}/V1/categories" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category": {"parent_id": {{$parent_id}}, "name": "{{$name}}", "is_active": {{$is_active}}, "level": {{$level}}, "include_in_menu": {{$include_in_menu}}, "custom_attributes": [ {"attribute_code": "description", "value": "{{$description}}" }, {"attribute_code": "meta_title", "value": "{{$meta_title}}" }, {"attribute_code": "meta_keywords", "value": "{{$meta_keywords}}" }, {"attribute_code": "meta_description", "value": "{{$meta_description}}" }, {"attribute_code": "url_key", "value": "{{$url_key}}" }, {"attribute_code": "url_path", "value": "{{$url_path}}" } ]}}'"