WooCommerce · Arazzo Workflow

WooCommerce Create Nested Category and Product

Version 1.0.0

Create a parent category, a child category under it, and a product in the child.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub E-CommerceOpen-SourceOrderProductWordPressArazzoWorkflows

Provider

woocommerce

Workflows

create-nested-category-product
Create a parent category, a child category, and a product in the child.
Creates a parent category, a nested child category, and a product assigned to the child category.
3 steps inputs: childName, parentName, productName, regularPrice outputs: childCategoryId, parentCategoryId, productId
1
createParentCategory
Create the top-level parent product category.
2
createChildCategory
Create a child category nested under the parent category.
3
createProduct
Create a product assigned to the child category.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: WooCommerce Create Nested Category and Product
  summary: Create a parent category, a child category under it, and a product in the child.
  description: >-
    Builds a two-level catalog taxonomy and a product within it. The workflow
    creates a parent product category, creates a child category whose parent is
    the first category, and finally creates a product assigned to the child
    category. Every step spells out its request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: productCategoriesApi
  url: ../openapi/woocommerce-product-categories-api-openapi.yml
  type: openapi
- name: productsApi
  url: ../openapi/woocommerce-products-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-nested-category-product
  summary: Create a parent category, a child category, and a product in the child.
  description: >-
    Creates a parent category, a nested child category, and a product assigned
    to the child category.
  inputs:
    type: object
    required:
    - parentName
    - childName
    - productName
    properties:
      parentName:
        type: string
        description: Name of the parent category to create.
      childName:
        type: string
        description: Name of the child category to create under the parent.
      productName:
        type: string
        description: Name of the product to create in the child category.
      regularPrice:
        type: string
        description: Optional regular price for the product as a decimal string.
  steps:
  - stepId: createParentCategory
    description: >-
      Create the top-level parent product category.
    operationId: createProductCategory
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.parentName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      parentCategoryId: $response.body#/id
  - stepId: createChildCategory
    description: >-
      Create a child category nested under the parent category.
    operationId: createProductCategory
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.childName
        parent: $steps.createParentCategory.outputs.parentCategoryId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      childCategoryId: $response.body#/id
  - stepId: createProduct
    description: >-
      Create a product assigned to the child category.
    operationId: createProduct
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.productName
        type: simple
        status: publish
        regular_price: $inputs.regularPrice
        categories:
        - id: $steps.createChildCategory.outputs.childCategoryId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      productId: $response.body#/id
  outputs:
    parentCategoryId: $steps.createParentCategory.outputs.parentCategoryId
    childCategoryId: $steps.createChildCategory.outputs.childCategoryId
    productId: $steps.createProduct.outputs.productId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/woocommerce-create-nested-category-product-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.