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": [
      "dac08054-80c4-4adf-b67a-ca225b0abba8",
      "0b314bf1-3744-4917-85cb-70154b0c988c",
      "c7efecca-574f-4efa-9a0a-f53c0baedfa6",
      "fc75233c-e2df-4f3c-9bf8-56c08ffca7f3",
      "1ed628ef-20cb-451e-8c22-e0b570a0441a"
    ]
  }
}
'
{
  "id": "b5d0420b-4baf-4a8c-99d5-5acf7e8ea244",
  "object": "bulk_action",
  "action_type": "delete_products",
  "record_ids": [
    "dac08054-80c4-4adf-b67a-ca225b0abba8",
    "0b314bf1-3744-4917-85cb-70154b0c988c",
    "c7efecca-574f-4efa-9a0a-f53c0baedfa6",
    "fc75233c-e2df-4f3c-9bf8-56c08ffca7f3",
    "1ed628ef-20cb-451e-8c22-e0b570a0441a"
  ],
  "skipped_record_ids": [],
  "status": "processing",
  "created_at": 1772112915,
  "updated_at": 1772112915
}

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.