---
title: "Update Components"
method: POST
path: "/subscriptions/{subscription_public_Id}/components/bulk_operation/"
---

# Update Components

`POST /subscriptions/{subscription_public_Id}/components/bulk_operation/`

## Request

- Base URL: `https://restapi.ordergroove.com`
- URL: `https://restapi.ordergroove.com/subscriptions/{subscription_public_Id}/components/bulk_operation/`
- Auth: one of:
  - none
  - API key in header `x-api-key`

Atomically modify (create, update, and/or delete) components associated with a subscription

## Path parameters

- `subscription_public_Id` string, required

## Request body

- object
  - `create` object[]: Bundle Components to create with product and its quantity
    - `product` string, required: The id of the product that is being added to the bundle
    - `quantity` integer, required: The quantity of the product being added
  - `update` object[]: Bundle Components to be updated with fields to change
    - `public_id` string, required: The id of the component to be modified
    - `quantity` integer: The new quantity to set for the component
    - `product` string: The new product to set for the component
  - `delete` string[]: Bundle components public ids to be deleted ["85eae83c245111eeb185acde48001122","b3928a0c3c4211eeac2bacde48001122"]

## Response `200`

200

- object
  - `created` object[]
    - `public_id` string
    - `product` string
    - `quantity` integer
  - `updated` object[]
    - `public_id` string
    - `product` string
    - `quantity` integer
  - `deleted` object[]
    - `public_id` string
    - `product` string
    - `quantity` integer

## Other responses

- `400`: 400
- `404`: 404

---

[API](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc.md) - [All operations](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/llms.txt) - [OpenAPI document](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/revisions/ba97e740d08c?raw)
