MobiariDocs
Admin APIManufacturing

Update a component

PATCH
/stores/{store_id}/components/{variant_id}

A rename also renames the wrapper product when it exists only to carry this part (a single-variant draft).

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
variant_id*string

The component's variant id

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/components/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "allow_backorder": true,
  "available": 0,
  "cost_cents": 0,
  "height_cm": 0,
  "is_active": true,
  "length_cm": 0,
  "name": "string",
  "on_hand": 0,
  "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
  "product_name": "string",
  "product_status": "string",
  "reorder_point": 0,
  "required_open": 0,
  "reserved": 0,
  "shortfall": 0,
  "sku": "string",
  "used_in_kits": 0,
  "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",
  "weight_grams": 0,
  "width_cm": 0
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}