Skip to main content
POST
/
v1
/
bulk_actions
Create
curl --request POST \
  --url https://{defaultHost}/v1/bulk_actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bulk_action": {
    "action_type": "delete_products",
    "record_ids": [
      "f4021662-7330-4bc5-aec1-679b1de737e4",
      "834fea78-ba5f-4d5a-b599-22aa0d697ea5",
      "bb412218-4d6f-4a79-8380-711992450665",
      "45ee3abe-9602-4037-9ec2-dce9ec886deb",
      "0b4cb205-ae39-459c-8937-967e69887b8c"
    ]
  }
}
'
{
  "id": "4b63c75b-7d30-4757-8276-cd76c6ddc081",
  "object": "bulk_action",
  "action_type": "delete_products",
  "record_ids": [
    "f4021662-7330-4bc5-aec1-679b1de737e4",
    "834fea78-ba5f-4d5a-b599-22aa0d697ea5",
    "bb412218-4d6f-4a79-8380-711992450665",
    "45ee3abe-9602-4037-9ec2-dce9ec886deb",
    "0b4cb205-ae39-459c-8937-967e69887b8c"
  ],
  "skipped_record_ids": [],
  "status": "processing",
  "created_at": 1767909674,
  "updated_at": 1767909674
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
bulk_action
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

action_type
string

The type of action to be performed. Possible values include:

  • delete_customers
  • delete_products
record_ids
array

The id of records to perform the bulk action on.

skipped_record_ids
array

The array of ids that are skipped due to the action not being applicable to them.

status
string

The status of the bulk action. Possible values include:

  • completed: The bulk action has been executed, possibly with some errors.
  • invalid: The bulk action contains no record_ids that support the given action.
  • pending: The bulk action is pending and not yet processed.
  • processing: The bulk action is currently being processed.
  • succeeded: The bulk action has succeeded with no errors for all the supporting record_ids.
created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.