younifyd
Menu

Batch Update Shipping Classes

Batch update shipping classes

POST/products/shipping-classes/batch

Use it in a workflow

  1. Add a step and choose the WooCommerce connector.
  2. Pick the Batch Update Shipping Classes action (under Product shipping classes).
  3. Fill in the fields below, then reference the result from later steps as {{batchUpdateShippingClasses.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

createarray<object>
idinteger

Shipping class ID.

namestring

Shipping class name.

slugstring

Shipping class slug.

descriptionstring

Shipping class description.

countinteger

Number of products in class.

updatearray<object>
idinteger

Shipping class ID.

namestring

Shipping class name.

slugstring

Shipping class slug.

descriptionstring

Shipping class description.

countinteger

Number of products in class.

deletearray<integer>
json
{
  "create": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "count": 0
    }
  ],
  "update": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "count": 0
    }
  ],
  "delete": [
    0
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{batchUpdateShippingClasses.response.data.<field>}}.

Need more? See the WooCommerce guide for connection setup and behaviour shared by every action.