POST
/
admin
/
draft-orders
/
{id}
/
edit
/
items
/
{action_id}
import Medusa from "@medusajs/js-sdk"

export const sdk = new Medusa({
  baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
  debug: import.meta.env.DEV,
  auth: {
    type: "session",
  },
})

sdk.admin.draftOrder.updateActionItem("order_123", "action_123", {
  quantity: 2,
})
.then(({ draft_order_preview }) => {
  console.log(draft_order_preview)
})
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The draft order's ID.

action_id
string
required

The ID of the item's ITEM_ADD action.

Body

application/json

The updates to make on a draft order's item.

Response

200

OK