Applies attribute changes to the product in the order remove → add → update.
Path parameters
string
required
The product’s ID.
Body parameters
object[]
Attributes to attach, one of two shapes per item.
Show existing attribute (by id)
string
required
ID of an existing catalog attribute.
string[]
IDs of attribute values to select.
string | number | boolean
Scalar value for text, unit, or toggle attributes.
Show inline attribute (by title)
string
required
Attribute title.
string
One of single_select, multi_select, unit, toggle, text; required for non-axis inline attributes unless value is a boolean.
string[]
Value names to create and select.
string | number | boolean
Scalar value for non-select types.
boolean
Whether the attribute drives variant generation; only allowed on multi_select attributes.
boolean
Whether the attribute can be used as a storefront filter.
boolean
Whether the inline attribute is internal, visible only to operators.
boolean
Whether a value is required on products.
string
Attribute description.
object
Custom key-value data.
string[]
IDs of attributes to detach from the product.
object[]
Changes to attributes already on the product.
Show properties
string
required
The attribute’s ID.
string
New attribute title.
(string | object)[]
Value names (or { value } objects) to add to the selection.
string[]
Value IDs to remove from the selection.
string[]
The complete set of value IDs the product should hold for this attribute. Resolved into the equivalent add / remove delta, so it cannot be combined with either.
string | number | boolean
New scalar value for non-select types.
Response
object
Show properties
string
The product’s ID.
string
Product title.
string
Current product status.
object[]
Attribute values selected on the product, each with its parent attribute.
object[]
Product-scoped (inline) attributes with their values.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"MercurJS Documentation","description":"Mercur is the open-source enterprise marketplace platform. Composable, API-first, and AI-native, it runs on your own infrastructure with role-based access control, an auditable change pipeline, and full code ownership. It powers multi-vendor sellers, commissions, order splitting, and payouts, with an admin panel and a vendor portal, on a proven Medusa commerce core.","colors":{"primary":"#7C3AED","light":"#8B5CF6","dark":"#6D28D9"},"logo":{"light":"https://mintcdn.com/mercur/vWfkHYVtAkC3pPnt/logo_dark.svg?fit=max\u0026auto=format\u0026n=vWfkHYVtAkC3pPnt\u0026q=85\u0026s=defe2a1c597691936b1338ae0eb57601","dark":"https://mintcdn.com/mercur/vWfkHYVtAkC3pPnt/logo.svg?fit=max\u0026auto=format\u0026n=vWfkHYVtAkC3pPnt\u0026q=85\u0026s=3bc1edc82b9d24b54f0434b60d091d25"},"favicon":"https://mintcdn.com/mercur/wRG-LXpRtE5ezy37/favicon.png?fit=max\u0026auto=format\u0026n=wRG-LXpRtE5ezy37\u0026q=85\u0026s=b69688ed5f7d5ed8b562ad14b98e66c3","appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#0C0A12"}},"footer":{"socials":{"github":"https://github.com/mercurjs/mercur","linkedin":"https://www.linkedin.com/company/mercurjs","discord":"https://discord.gg/NTWNa49S"}},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude",{"title":"Request a feature","description":"Join the discussion on GitHub to request a new feature","icon":"plus","href":"https://github.com/mercurjs/mercur/discussions/categories/ideas"}],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mercur","hasAudioNarration":false,"actualSubdomain":"mercur","customDomains":["docs.mercurjs.com"],"gitSource":{"type":"github","owner":"mercurjs","repo":"mercur","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6afc8bd0fc47bc8b44e1c05c","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Reference","count":196},{"language":"default","tag":"Platform","count":110},{"language":"default","tag":"Admin API","count":67},{"language":"default","tag":"Vendor API","count":59},{"language":"default","tag":"Build","count":42},{"language":"default","tag":"Products","count":39},{"language":"default","tag":"Sellers","count":38},{"language":"default","tag":"Concepts","count":28},{"language":"default","tag":"Guides","count":28},{"language":"default","tag":"User Guide","count":27}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark nav#sidebar{background-color:#15121d}.dark #search-bar-entry{background-color:#1b1726}.dark pre,.dark pre>div,.dark [class*=\"code\"] pre{background-color:#15121d!important}.dark .card,.dark [class*=\"Card\"]{background-color:#15121d}h1{letter-spacing:-0.9px}h2{letter-spacing:-0.6px}h3{letter-spacing:-0.4px}pre,code,img,table,th,td,input,button,#search-bar-entry,[class*=\"rounded-sm\"],[class*=\"rounded-md\"],[class*=\"rounded-lg\"],[class*=\"rounded-xl\"],[class*=\"rounded-2xl\"],[class*=\"rounded-3xl\"]{border-radius:0!important}"}]}
{"page":{"pagePath":"references/api/admin/products/batch-product-attributes","slug":"/references/api/admin/products/batch-product-attributes","pageMetadata":{"title":"Batch Product Attributes","api":"POST /admin/products/{id}/attributes/batch","description":"Add, remove, and update attributes on a product in one request.","href":"/references/api/admin/products/batch-product-attributes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add, remove, and update attributes on a product in one request.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Applies attribute changes to the product in the order `,_jsx(_components.code,{children:`remove`}),` → `,_jsx(_components.code,{children:`add`}),` → `,_jsx(_components.code,{children:`update`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:`The product’s ID.`}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`add`,type:`object[]`,id:`param-add`,children:[_jsx(_components.p,{children:`Attributes to attach, one of two shapes per item.`}),_jsxs(Expandable,{title:`existing attribute (by id)`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:`ID of an existing catalog attribute.`}),_jsx(ParamField,{body:`value_ids`,type:`string[]`,id:`param-value-ids`,children:`IDs of attribute values to select.`}),_jsxs(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value`,children:[`Scalar value for `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`unit`}),`, or `,_jsx(_components.code,{children:`toggle`}),` attributes.`]})]}),_jsxs(Expandable,{title:`inline attribute (by title)`,children:[_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:`Attribute title.`}),_jsxs(ParamField,{body:`type`,type:`string`,id:`param-type`,children:[`One of `,_jsx(_components.code,{children:`single_select`}),`, `,_jsx(_components.code,{children:`multi_select`}),`, `,_jsx(_components.code,{children:`unit`}),`, `,_jsx(_components.code,{children:`toggle`}),`, `,_jsx(_components.code,{children:`text`}),`; required for non-axis inline attributes unless `,_jsx(_components.code,{children:`value`}),` is a boolean.`]}),_jsx(ParamField,{body:`values`,type:`string[]`,id:`param-values`,children:`Value names to create and select.`}),_jsx(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value-1`,children:`Scalar value for non-select types.`}),_jsxs(ParamField,{body:`is_variant_axis`,type:`boolean`,id:`param-is-variant-axis`,children:[`Whether the attribute drives variant generation; only allowed on `,_jsx(_components.code,{children:`multi_select`}),` attributes.`]}),_jsx(ParamField,{body:`is_filterable`,type:`boolean`,id:`param-is-filterable`,children:`Whether the attribute can be used as a storefront filter.`}),_jsx(ParamField,{body:`is_internal`,type:`boolean`,id:`param-is-internal`,children:`Whether the inline attribute is internal, visible only to operators.`}),_jsx(ParamField,{body:`is_required`,type:`boolean`,id:`param-is-required`,children:`Whether a value is required on products.`}),_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:`Attribute description.`}),_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:`Custom key-value data.`})]})]}),`\n`,_jsx(ParamField,{body:`remove`,type:`string[]`,id:`param-remove`,children:`IDs of attributes to detach from the product.`}),`\n`,_jsxs(ParamField,{body:`update`,type:`object[]`,id:`param-update`,children:[_jsx(_components.p,{children:`Changes to attributes already on the product.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-2`,children:`The attribute’s ID.`}),_jsx(ParamField,{body:`title`,type:`string`,id:`param-title-1`,children:`New attribute title.`}),_jsxs(ParamField,{body:`add`,type:`(string | object)[]`,id:`param-add-1`,children:[`Value names (or `,_jsx(_components.code,{children:`{ value }`}),` objects) to add to the selection.`]}),_jsx(ParamField,{body:`remove`,type:`string[]`,id:`param-remove-1`,children:`Value IDs to remove from the selection.`}),_jsxs(ParamField,{body:`value_ids`,type:`string[]`,id:`param-value-ids-1`,children:[`The complete set of value IDs the product should hold for this attribute. Resolved into the equivalent `,_jsx(_components.code,{children:`add`}),` / `,_jsx(_components.code,{children:`remove`}),` delta, so it cannot be combined with either.`]}),_jsx(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value-2`,children:`New scalar value for non-select types.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`product`,type:`object`,id:`param-product`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-3`,children:`The product’s ID.`}),_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title-2`,children:`Product title.`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:`Current product status.`}),_jsxs(ResponseField,{name:`product_attribute_values`,type:`object[]`,id:`param-product-attribute-values`,children:[`Attribute values selected on the product, each with its parent `,_jsx(_components.code,{children:`attribute`}),`.`]}),_jsxs(ResponseField,{name:`scoped_attributes`,type:`object[]`,id:`param-scoped-attributes`,children:[`Product-scoped (inline) attributes with their `,_jsx(_components.code,{children:`values`}),`.`]})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Batch Product Attributes","api":"POST /admin/products/{id}/attributes/batch","description":"Add, remove, and update attributes on a product in one request.","href":"/references/api/admin/products/batch-product-attributes"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Applies attribute changes to the product in the order `,_jsx(_components.code,{children:`remove`}),` → `,_jsx(_components.code,{children:`add`}),` → `,_jsx(_components.code,{children:`update`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:`The product’s ID.`}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`add`,type:`object[]`,id:`param-add`,children:[_jsx(_components.p,{children:`Attributes to attach, one of two shapes per item.`}),_jsxs(Expandable,{title:`existing attribute (by id)`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:`ID of an existing catalog attribute.`}),_jsx(ParamField,{body:`value_ids`,type:`string[]`,id:`param-value-ids`,children:`IDs of attribute values to select.`}),_jsxs(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value`,children:[`Scalar value for `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`unit`}),`, or `,_jsx(_components.code,{children:`toggle`}),` attributes.`]})]}),_jsxs(Expandable,{title:`inline attribute (by title)`,children:[_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:`Attribute title.`}),_jsxs(ParamField,{body:`type`,type:`string`,id:`param-type`,children:[`One of `,_jsx(_components.code,{children:`single_select`}),`, `,_jsx(_components.code,{children:`multi_select`}),`, `,_jsx(_components.code,{children:`unit`}),`, `,_jsx(_components.code,{children:`toggle`}),`, `,_jsx(_components.code,{children:`text`}),`; required for non-axis inline attributes unless `,_jsx(_components.code,{children:`value`}),` is a boolean.`]}),_jsx(ParamField,{body:`values`,type:`string[]`,id:`param-values`,children:`Value names to create and select.`}),_jsx(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value-1`,children:`Scalar value for non-select types.`}),_jsxs(ParamField,{body:`is_variant_axis`,type:`boolean`,id:`param-is-variant-axis`,children:[`Whether the attribute drives variant generation; only allowed on `,_jsx(_components.code,{children:`multi_select`}),` attributes.`]}),_jsx(ParamField,{body:`is_filterable`,type:`boolean`,id:`param-is-filterable`,children:`Whether the attribute can be used as a storefront filter.`}),_jsx(ParamField,{body:`is_internal`,type:`boolean`,id:`param-is-internal`,children:`Whether the inline attribute is internal, visible only to operators.`}),_jsx(ParamField,{body:`is_required`,type:`boolean`,id:`param-is-required`,children:`Whether a value is required on products.`}),_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:`Attribute description.`}),_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:`Custom key-value data.`})]})]}),`\n`,_jsx(ParamField,{body:`remove`,type:`string[]`,id:`param-remove`,children:`IDs of attributes to detach from the product.`}),`\n`,_jsxs(ParamField,{body:`update`,type:`object[]`,id:`param-update`,children:[_jsx(_components.p,{children:`Changes to attributes already on the product.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-2`,children:`The attribute’s ID.`}),_jsx(ParamField,{body:`title`,type:`string`,id:`param-title-1`,children:`New attribute title.`}),_jsxs(ParamField,{body:`add`,type:`(string | object)[]`,id:`param-add-1`,children:[`Value names (or `,_jsx(_components.code,{children:`{ value }`}),` objects) to add to the selection.`]}),_jsx(ParamField,{body:`remove`,type:`string[]`,id:`param-remove-1`,children:`Value IDs to remove from the selection.`}),_jsxs(ParamField,{body:`value_ids`,type:`string[]`,id:`param-value-ids-1`,children:[`The complete set of value IDs the product should hold for this attribute. Resolved into the equivalent `,_jsx(_components.code,{children:`add`}),` / `,_jsx(_components.code,{children:`remove`}),` delta, so it cannot be combined with either.`]}),_jsx(ParamField,{body:`value`,type:`string | number | boolean`,id:`param-value-2`,children:`New scalar value for non-select types.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`product`,type:`object`,id:`param-product`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-3`,children:`The product’s ID.`}),_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title-2`,children:`Product title.`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:`Current product status.`}),_jsxs(ResponseField,{name:`product_attribute_values`,type:`object[]`,id:`param-product-attribute-values`,children:[`Attribute values selected on the product, each with its parent `,_jsx(_components.code,{children:`attribute`}),`.`]}),_jsxs(ResponseField,{name:`scoped_attributes`,type:`object[]`,id:`param-scoped-attributes`,children:[`Product-scoped (inline) attributes with their `,_jsx(_components.code,{children:`values`}),`.`]})]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/attributes/batch'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"add\": [{ \"id\": \"pattr_01HXYZABCDEF\", \"value_ids\": [\"pattrval_01HXYZABCDEF\"] }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"remove\": [\"pattr_01HXYZABCDEG\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JS Client`,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`product`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`admin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`products`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`attributes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`batch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mutate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prod_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` add:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pattr_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value_ids:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pattrval_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` remove:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pattr_01HXYZABCDEG\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prod_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Linen Shirt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"published\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product_attribute_values\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pattrval_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Linen\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attribute\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pattr_01HXYZABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Material\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"single_select\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scoped_attributes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Batch Product Attributes","api":"POST /admin/products/{id}/attributes/batch","description":"Add, remove, and update attributes on a product in one request.","href":"/references/api/admin/products/batch-product-attributes"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/attributes/batch'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"add\": [{ \"id\": \"pattr_01HXYZABCDEF\", \"value_ids\": [\"pattrval_01HXYZABCDEF\"] }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"remove\": [\"pattr_01HXYZABCDEG\"]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JS Client","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">product\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">admin\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">products\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$id\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">attributes\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">batch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">mutate\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> $id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prod_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> add:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [{ \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pattr_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">value_ids:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pattrval_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> remove:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pattr_01HXYZABCDEG\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">})\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"product\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"prod_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Linen Shirt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"published\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"product_attribute_values\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pattrval_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Linen\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"attribute\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pattr_01HXYZABCDEF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Material\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"single_select\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"scoped_attributes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Batch Product Attributes","path":"/admin/products/{id}/attributes/batch","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The product’s ID.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"add":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"ID of an existing catalog attribute.","required":true}],"value_ids":[{"type":"array","items":[{"type":"string"}],"description":"IDs of attribute values to select."}],"value":[{"type":"object","properties":{},"description":"Scalar value for non-select types."}],"title":[{"type":"string","description":"Attribute title.","required":true}],"type":[{"type":"string","description":"One of `single_select` , `multi_select` , `unit` , `toggle` , `text` ; required for non-axis inline attributes unless `value` is a boolean."}],"values":[{"type":"array","items":[{"type":"string"}],"description":"Value names to create and select."}],"is_variant_axis":[{"type":"boolean","description":"Whether the attribute drives variant generation; only allowed on `multi_select` attributes."}],"is_filterable":[{"type":"boolean","description":"Whether the attribute can be used as a storefront filter."}],"is_internal":[{"type":"boolean","description":"Whether the inline attribute is internal, visible only to operators."}],"is_required":[{"type":"boolean","description":"Whether a value is required on products."}],"description":[{"type":"string","description":"Attribute description."}],"metadata":[{"type":"object","properties":{},"description":"Custom key-value data."}]}}],"description":"Attributes to attach, one of two shapes per item."}],"remove":[{"type":"array","items":[{"type":"string"}],"description":"IDs of attributes to detach from the product."}],"update":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The attribute’s ID.","required":true}],"title":[{"type":"string","description":"New attribute title."}],"add":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Value names (or `{ value }` objects) to add to the selection."}],"remove":[{"type":"array","items":[{"type":"string"}],"description":"Value IDs to remove from the selection."}],"value_ids":[{"type":"array","items":[{"type":"string"}],"description":"The complete set of value IDs the product should hold for this attribute. Resolved into the equivalent `add` / `remove` delta, so it cannot be combined with either."}],"value":[{"type":"object","properties":{},"description":"New scalar value for non-select types."}]}}],"description":"Changes to attributes already on the product."}]}}],"examples":{"example":{"value":{"add":[{"id":"\u003cstring>","value_ids":["\u003cstring>"],"value":{},"title":"\u003cstring>","type":"\u003cstring>","values":["\u003cstring>"],"is_variant_axis":true,"is_filterable":true,"is_internal":true,"is_required":true,"description":"\u003cstring>","metadata":{}}],"remove":["\u003cstring>"],"update":[{"id":"\u003cstring>","title":"\u003cstring>","add":[{}],"remove":["\u003cstring>"],"value_ids":["\u003cstring>"],"value":{}}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"product":[{"type":"object","properties":{"id":[{"type":"string","description":"The product’s ID."}],"title":[{"type":"string","description":"Product title."}],"status":[{"type":"string","description":"Current product status."}],"product_attribute_values":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Attribute values selected on the product, each with its parent `attribute` ."}],"scoped_attributes":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Product-scoped (inline) attributes with their `values` ."}]}}]}}],"examples":{"example":{"value":{"product":{"id":"\u003cstring>","title":"\u003cstring>","status":"\u003cstring>","product_attribute_values":[{}],"scoped_attributes":[{}]}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"mercur","siteName":"MercurJS Documentation","title":"Batch Product Attributes - MercurJS Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T15:51:46.701Z","originalFileLocation":"references/api/admin/products/batch-product-attributes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add, remove, and update attributes on a product in one request.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MercurJS Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Batch Product Attributes - MercurJS Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add, remove, and update attributes on a product in one request.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MercurJS Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mercur.mintlify.site/_mintlify/api/og/v2?division=Products\u0026amp;title=Batch+Product+Attributes\u0026amp;description=Add%2C+remove%2C+and+update+attributes+on+a+product+in+one+request.\u0026amp;theme=9cc52ad8b660c3abf7810d98\u0026amp;signature=a1cea62cf9a619f2f380a0b511e32451a9e6f51e5c95fd6b1ef4ef90326bbc24\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Batch Product Attributes - MercurJS Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add, remove, and update attributes on a product in one request.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mercur.mintlify.site/_mintlify/api/og/v2?division=Products\u0026amp;title=Batch+Product+Attributes\u0026amp;description=Add%2C+remove%2C+and+update+attributes+on+a+product+in+one+request.\u0026amp;theme=9cc52ad8b660c3abf7810d98\u0026amp;signature=a1cea62cf9a619f2f380a0b511e32451a9e6f51e5c95fd6b1ef4ef90326bbc24\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mercur/b8jjHsKWS_gZ120x/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MercurJS Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/references/api/admin/products/batch-product-attributes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mercurjs.com/#organization\",\"name\":\"MercurJS Documentation\",\"url\":\"https://docs.mercurjs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mercur/vWfkHYVtAkC3pPnt/logo_dark.svg?fit=max\u0026auto=format\u0026n=vWfkHYVtAkC3pPnt\u0026q=85\u0026s=defe2a1c597691936b1338ae0eb57601\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mercurjs.com#website\",\"name\":\"MercurJS Documentation\",\"url\":\"https://docs.mercurjs.com\",\"publisher\":{\"@id\":\"https://docs.mercurjs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes#webpage\",\"url\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes\",\"name\":\"Batch Product Attributes\",\"description\":\"Add, remove, and update attributes on a product in one request.\",\"dateModified\":\"2026-11-17T15:51:46.701Z\",\"isPartOf\":{\"@id\":\"https://docs.mercurjs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Admin API\",\"item\":\"https://docs.mercurjs.com/references/api/conventions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Products\",\"item\":\"https://docs.mercurjs.com/references/api/admin/products/list-products\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Batch Product Attributes\",\"item\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes#apireference\",\"headline\":\"Batch Product Attributes\",\"name\":\"Batch Product Attributes\",\"description\":\"Add, remove, and update attributes on a product in one request.\",\"url\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mercurjs.com/references/api/admin/products/batch-product-attributes#webpage\"},\"dateModified\":\"2026-11-17T15:51:46.701Z\",\"publisher\":{\"@id\":\"https://docs.mercurjs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mercurjs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MercurJS Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MercurJS Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/references/api/admin/products/batch-product-attributes.md","siteName":"MercurJS Documentation","nav":{"global":null,"tabs":[{"tab":"Start","pages":[{"title":"Start","href":"/home"}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/platform/store/overview"}]},{"tab":"Build","pages":[{"title":"Build","href":"/resources/best-practices/overview"}]},{"tab":"Reference","groups":[{"group":"Overview","pages":[{"title":"Reference","sidebarTitle":"Overview","href":"/references/overview"}]},{"group":"Panel extensions","pages":[{"title":"Panel extensions","sidebarTitle":"Overview","href":"/references/panel-extensions/overview"},{"title":"Custom Fields","sidebarTitle":"Custom Fields","href":"/references/panel-extensions/custom-fields"},{"title":"Widgets","sidebarTitle":"Widgets","href":"/references/panel-extensions/widgets"},{"title":"Layouts and layers","sidebarTitle":"Layouts and layers","href":"/references/panel-extensions/layouts"},{"title":"Create a new page","sidebarTitle":"Create new page","href":"/references/panel-extensions/create-page"}]},{"group":"Admin API","pages":[{"title":"API conventions","href":"/references/api/conventions"},{"title":"Admin API","href":"/references/api/admin"},{"group":"Sellers","pages":[{"title":"List Sellers","api":"GET /admin/sellers","href":"/references/api/admin/sellers/list-sellers"},{"title":"Create Seller","api":"POST /admin/sellers","href":"/references/api/admin/sellers/create-seller"},{"title":"Retrieve Seller","api":"GET /admin/sellers/{id}","href":"/references/api/admin/sellers/retrieve-seller"},{"title":"Update Seller","api":"POST /admin/sellers/{id}","href":"/references/api/admin/sellers/update-seller"},{"title":"Approve Seller","api":"POST /admin/sellers/{id}/approve","href":"/references/api/admin/sellers/approve-seller"},{"title":"Suspend Seller","api":"POST /admin/sellers/{id}/suspend","href":"/references/api/admin/sellers/suspend-seller"},{"title":"Unsuspend Seller","api":"POST /admin/sellers/{id}/unsuspend","href":"/references/api/admin/sellers/unsuspend-seller"},{"title":"Terminate Seller","api":"POST /admin/sellers/{id}/terminate","href":"/references/api/admin/sellers/terminate-seller"},{"title":"Unterminate Seller","api":"POST /admin/sellers/{id}/unterminate","href":"/references/api/admin/sellers/unterminate-seller"},{"title":"Upsert Seller Address","api":"POST /admin/sellers/{id}/address","href":"/references/api/admin/sellers/upsert-seller-address"},{"title":"Upsert Payment Details","api":"POST /admin/sellers/{id}/payment-details","href":"/references/api/admin/sellers/upsert-payment-details"},{"title":"Upsert Professional Details","api":"POST /admin/sellers/{id}/professional-details","href":"/references/api/admin/sellers/upsert-professional-details"},{"title":"Delete Professional Details","api":"DELETE /admin/sellers/{id}/professional-details","href":"/references/api/admin/sellers/delete-professional-details"},{"title":"List Seller Products","api":"GET /admin/sellers/{id}/products","href":"/references/api/admin/sellers/list-seller-products"},{"title":"List Seller Members","api":"GET /admin/sellers/{id}/members","href":"/references/api/admin/sellers/list-seller-members"},{"title":"Add Seller Member","api":"POST /admin/sellers/{id}/members","href":"/references/api/admin/sellers/add-seller-member"},{"title":"Remove Seller Member","api":"DELETE /admin/sellers/{id}/members/{member_id}","href":"/references/api/admin/sellers/remove-seller-member"},{"title":"Invite Seller Member","api":"POST /admin/sellers/{id}/members/invite","href":"/references/api/admin/sellers/invite-seller-member"},{"title":"List Member Invites","api":"GET /admin/sellers/{id}/members/invites","href":"/references/api/admin/sellers/list-member-invites"},{"title":"Delete Member Invite","api":"DELETE /admin/sellers/{id}/members/invites/{invite_id}","href":"/references/api/admin/sellers/delete-member-invite"},{"title":"Resend Member Invite","api":"POST /admin/sellers/{id}/members/invites/{invite_id}/resend","href":"/references/api/admin/sellers/resend-member-invite"}]},{"group":"Members","pages":[{"title":"List Members","api":"GET /admin/members","href":"/references/api/admin/members/list-members"}]},{"group":"Commission Rates","pages":[{"title":"List Commission Rates","api":"GET /admin/commission-rates","href":"/references/api/admin/commission-rates/list-commission-rates"},{"title":"Create Commission Rate","api":"POST /admin/commission-rates","href":"/references/api/admin/commission-rates/create-commission-rate"},{"title":"Retrieve Commission Rate","api":"GET /admin/commission-rates/{id}","href":"/references/api/admin/commission-rates/retrieve-commission-rate"},{"title":"Update Commission Rate","api":"POST /admin/commission-rates/{id}","href":"/references/api/admin/commission-rates/update-commission-rate"},{"title":"Delete Commission Rate","api":"DELETE /admin/commission-rates/{id}","href":"/references/api/admin/commission-rates/delete-commission-rate"},{"title":"Batch Commission Rules","api":"POST /admin/commission-rates/{id}/rules","href":"/references/api/admin/commission-rates/batch-commission-rules"}]},{"group":"Payouts","pages":[{"title":"List Payouts","api":"GET /admin/payouts","href":"/references/api/admin/payouts/list-payouts"},{"title":"Retrieve Payout","api":"GET /admin/payouts/{id}","href":"/references/api/admin/payouts/retrieve-payout"}]},{"group":"Offers","pages":[{"title":"List Offers","api":"GET /admin/offers","href":"/references/api/admin/offers/list-offers"},{"title":"Retrieve Offer","api":"GET /admin/offers/{id}","href":"/references/api/admin/offers/retrieve-offer"},{"title":"Delete Offer","api":"DELETE /admin/offers/{id}","href":"/references/api/admin/offers/delete-offer"},{"title":"Batch Create Offers","api":"POST /admin/offers/batch","href":"/references/api/admin/offers/batch-create-offers"}]},{"group":"Products","pages":[{"title":"List Products","api":"GET /admin/products","href":"/references/api/admin/products/list-products"},{"title":"Create Product","api":"POST /admin/products","href":"/references/api/admin/products/create-product"},{"title":"Retrieve Product","api":"GET /admin/products/{id}","href":"/references/api/admin/products/retrieve-product"},{"title":"Update Product","api":"POST /admin/products/{id}","href":"/references/api/admin/products/update-product"},{"title":"Delete Product","api":"DELETE /admin/products/{id}","href":"/references/api/admin/products/delete-product"},{"title":"Preview Product Changes","api":"GET /admin/products/{id}/preview","href":"/references/api/admin/products/preview-product"},{"title":"Confirm Product","api":"POST /admin/products/{id}/confirm","href":"/references/api/admin/products/confirm-product"},{"title":"Reject Product","api":"POST /admin/products/{id}/reject","href":"/references/api/admin/products/reject-product"},{"title":"Request Product Changes","api":"POST /admin/products/{id}/request-changes","href":"/references/api/admin/products/request-product-changes"},{"title":"Set Product Sellers","api":"POST /admin/products/{id}/sellers","description":"Manage which sellers are eligible to sell a product.","href":"/references/api/admin/products/set-product-sellers"},{"title":"Batch Product Attributes","api":"POST /admin/products/{id}/attributes/batch","href":"/references/api/admin/products/batch-product-attributes"},{"title":"List Product Variants","api":"GET /admin/products/{id}/variants","description":"Retrieve a paginated list of a product's variants.","href":"/references/api/admin/products/list-product-variants"},{"title":"Create Product Variant","api":"POST /admin/products/{id}/variants","href":"/references/api/admin/products/create-product-variant"},{"title":"Retrieve Product Variant","api":"GET /admin/products/{id}/variants/{variant_id}","href":"/references/api/admin/products/retrieve-product-variant"},{"title":"Update Product Variant","api":"POST /admin/products/{id}/variants/{variant_id}","href":"/references/api/admin/products/update-product-variant"},{"title":"Delete Product Variant","api":"DELETE /admin/products/{id}/variants/{variant_id}","href":"/references/api/admin/products/delete-product-variant"}]},{"group":"Product Changes","pages":[{"title":"Confirm Product Change","api":"POST /admin/product-changes/{id}/confirm","href":"/references/api/admin/product-changes/confirm-product-change"},{"title":"Cancel Product Change","api":"POST /admin/product-changes/{id}/cancel","href":"/references/api/admin/product-changes/cancel-product-change"}]},{"group":"Product Attributes","pages":[{"title":"List Product Attributes","api":"GET /admin/product-attributes","href":"/references/api/admin/product-attributes/list-product-attributes"},{"title":"Create Product Attribute","api":"POST /admin/product-attributes","href":"/references/api/admin/product-attributes/create-product-attribute"},{"title":"Retrieve Product Attribute","api":"GET /admin/product-attributes/{id}","href":"/references/api/admin/product-attributes/retrieve-product-attribute"},{"title":"Update Product Attribute","api":"POST /admin/product-attributes/{id}","href":"/references/api/admin/product-attributes/update-product-attribute"},{"title":"Delete Product Attribute","api":"DELETE /admin/product-attributes/{id}","href":"/references/api/admin/product-attributes/delete-product-attribute"},{"title":"Upsert Attribute Values","api":"POST /admin/product-attributes/{id}/values","href":"/references/api/admin/product-attributes/create-attribute-value"},{"title":"Update Attribute Value","api":"POST /admin/product-attributes/{id}/values/{value_id}","href":"/references/api/admin/product-attributes/update-attribute-value"},{"title":"Delete Attribute Value","api":"DELETE /admin/product-attributes/{id}/values/{value_id}","href":"/references/api/admin/product-attributes/delete-attribute-value"}]},{"group":"Orders","pages":[{"title":"List Orders","api":"GET /admin/orders","href":"/references/api/admin/orders/list-orders"},{"title":"Get Order Commission Lines","api":"GET /admin/orders/{id}/commission-lines","href":"/references/api/admin/orders/get-order-commission-lines"},{"title":"Get Order's Order Group","api":"GET /admin/orders/{id}/order-group","href":"/references/api/admin/orders/get-order-order-group"}]},{"group":"Order Groups","pages":[{"title":"List Order Groups","api":"GET /admin/order-groups","href":"/references/api/admin/order-groups/list-order-groups"},{"title":"Retrieve Order Group","api":"GET /admin/order-groups/{id}","href":"/references/api/admin/order-groups/retrieve-order-group"}]}]},{"group":"Vendor API","pages":[{"title":"Vendor API","href":"/references/api/vendor"},{"group":"Sellers","pages":[{"title":"Create Seller","api":"POST /vendor/sellers","href":"/references/api/vendor/sellers/create-seller"},{"title":"List Sellers","api":"GET /vendor/sellers","href":"/references/api/vendor/sellers/list-sellers"},{"title":"Select Seller","api":"POST /vendor/sellers/select","href":"/references/api/vendor/sellers/select-seller"},{"title":"Retrieve Current Seller","api":"GET /vendor/sellers/me","href":"/references/api/vendor/sellers/retrieve-current-seller"},{"title":"Update Current Seller","api":"POST /vendor/sellers/me","href":"/references/api/vendor/sellers/update-current-seller"},{"title":"Upsert Seller Address","api":"POST /vendor/sellers/{id}/address","href":"/references/api/vendor/sellers/upsert-seller-address"},{"title":"Upsert Payment Details","api":"POST /vendor/sellers/{id}/payment-details","href":"/references/api/vendor/sellers/upsert-payment-details"},{"title":"Upsert Professional Details","api":"POST /vendor/sellers/{id}/professional-details","href":"/references/api/vendor/sellers/upsert-professional-details"},{"title":"Delete Professional Details","api":"DELETE /vendor/sellers/{id}/professional-details","href":"/references/api/vendor/sellers/delete-professional-details"},{"title":"List Seller Members","api":"GET /vendor/sellers/{id}/members","href":"/references/api/vendor/sellers/list-seller-members"},{"title":"Invite Seller Member","api":"POST /vendor/sellers/{id}/members","href":"/references/api/vendor/sellers/invite-seller-member"},{"title":"Update Member Role","api":"POST /vendor/sellers/{id}/members/{member_id}","href":"/references/api/vendor/sellers/update-member-role"},{"title":"Remove Seller Member","api":"DELETE /vendor/sellers/{id}/members/{member_id}","href":"/references/api/vendor/sellers/remove-seller-member"},{"title":"Retrieve Current Seller Member","api":"GET /vendor/sellers/{id}/members/me","href":"/references/api/vendor/sellers/retrieve-current-seller-member"},{"title":"List Member Invites","api":"GET /vendor/sellers/{id}/members/invites","href":"/references/api/vendor/sellers/list-member-invites"}]},{"group":"Members","pages":[{"title":"Retrieve Current Member","api":"GET /vendor/members/me","href":"/references/api/vendor/members/retrieve-current-member"},{"title":"Update Current Member","api":"POST /vendor/members/me","href":"/references/api/vendor/members/update-current-member"},{"title":"Accept Member Invite","api":"POST /vendor/members/invites/accept","href":"/references/api/vendor/members/accept-member-invite"}]},{"group":"Products","pages":[{"title":"List Products","api":"GET /vendor/products","href":"/references/api/vendor/products/list-products"},{"title":"Create Product","api":"POST /vendor/products","href":"/references/api/vendor/products/create-product"},{"title":"Retrieve Product","api":"GET /vendor/products/{id}","href":"/references/api/vendor/products/retrieve-product"},{"title":"Update Product","api":"POST /vendor/products/{id}","href":"/references/api/vendor/products/update-product"},{"title":"Delete Product","api":"DELETE /vendor/products/{id}","href":"/references/api/vendor/products/delete-product"},{"title":"Preview Product Change","api":"GET /vendor/products/{id}/preview","href":"/references/api/vendor/products/preview-product"},{"title":"Cancel Product Change","api":"POST /vendor/products/{id}/cancel","href":"/references/api/vendor/products/cancel-product-change"},{"title":"Batch Product Attributes","api":"POST /vendor/products/{id}/attributes/batch","href":"/references/api/vendor/products/batch-product-attributes"},{"title":"List Product Variants","api":"GET /vendor/products/{id}/variants","href":"/references/api/vendor/products/list-product-variants"},{"title":"Create Product Variant","api":"POST /vendor/products/{id}/variants","href":"/references/api/vendor/products/create-product-variant"},{"title":"Retrieve Product Variant","api":"GET /vendor/products/{id}/variants/{variant_id}","href":"/references/api/vendor/products/retrieve-product-variant"},{"title":"Update Product Variant","api":"POST /vendor/products/{id}/variants/{variant_id}","href":"/references/api/vendor/products/update-product-variant"},{"title":"Delete Product Variant","api":"DELETE /vendor/products/{id}/variants/{variant_id}","href":"/references/api/vendor/products/delete-product-variant"},{"title":"List Variants","api":"GET /vendor/product-variants","href":"/references/api/vendor/product-variants/list-variants"}]},{"group":"Product Attributes","pages":[{"title":"List Product Attributes","api":"GET /vendor/product-attributes","href":"/references/api/vendor/product-attributes/list-product-attributes"},{"title":"Retrieve Product Attribute","api":"GET /vendor/product-attributes/{id}","href":"/references/api/vendor/product-attributes/retrieve-product-attribute"}]},{"group":"Offers","pages":[{"title":"List Offers","api":"GET /vendor/offers","href":"/references/api/vendor/offers/list-offers"},{"title":"Create Offer","api":"POST /vendor/offers","href":"/references/api/vendor/offers/create-offer"},{"title":"Retrieve Offer","api":"GET /vendor/offers/{id}","href":"/references/api/vendor/offers/retrieve-offer"},{"title":"Update Offer","api":"POST /vendor/offers/{id}","href":"/references/api/vendor/offers/update-offer"},{"title":"Delete Offer","api":"DELETE /vendor/offers/{id}","href":"/references/api/vendor/offers/delete-offer"},{"title":"Batch Create Offers","api":"POST /vendor/offers/batch","href":"/references/api/vendor/offers/batch-create-offers"},{"title":"Batch Offer Inventory Items","api":"POST /vendor/offers/{id}/inventory-items/batch","href":"/references/api/vendor/offers/batch-offer-inventory-items"}]},{"group":"Orders","pages":[{"title":"List Orders","api":"GET /vendor/orders","href":"/references/api/vendor/orders/list-orders"},{"title":"Retrieve Order","api":"GET /vendor/orders/{id}","href":"/references/api/vendor/orders/retrieve-order"},{"title":"Preview Order","api":"GET /vendor/orders/{id}/preview","href":"/references/api/vendor/orders/preview-order"},{"title":"List Order Changes","api":"GET /vendor/orders/{id}/changes","href":"/references/api/vendor/orders/list-order-changes"},{"title":"Get Order Commission Lines","api":"GET /vendor/orders/{id}/commission-lines","href":"/references/api/vendor/orders/get-order-commission-lines"},{"title":"Complete Order","api":"POST /vendor/orders/{id}/complete","href":"/references/api/vendor/orders/complete-order"},{"title":"Cancel Order","api":"POST /vendor/orders/{id}/cancel","href":"/references/api/vendor/orders/cancel-order"},{"title":"Create Fulfillment","api":"POST /vendor/orders/{id}/fulfillments","href":"/references/api/vendor/orders/create-fulfillment"},{"title":"Cancel Fulfillment","api":"POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/cancel","href":"/references/api/vendor/orders/cancel-fulfillment"},{"title":"Mark Fulfillment as Delivered","api":"POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/mark-as-delivered","href":"/references/api/vendor/orders/mark-fulfillment-delivered"},{"title":"Create Shipment","api":"POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/shipments","href":"/references/api/vendor/orders/create-shipment"}]},{"group":"Payouts","pages":[{"title":"List Payouts","api":"GET /vendor/payouts","href":"/references/api/vendor/payouts/list-payouts"},{"title":"Retrieve Payout","api":"GET /vendor/payouts/{id}","href":"/references/api/vendor/payouts/retrieve-payout"},{"title":"List Payout Accounts","api":"GET /vendor/payout-accounts","href":"/references/api/vendor/payout-accounts/retrieve-payout-account"},{"title":"Create Payout Account","api":"POST /vendor/payout-accounts","href":"/references/api/vendor/payout-accounts/create-payout-account"},{"title":"Retrieve Payout Account","api":"GET /vendor/payout-accounts/{id}","href":"/references/api/vendor/payout-accounts/retrieve-payout-account-by-id"},{"title":"Create Onboarding","api":"POST /vendor/payout-accounts/{id}/onboarding","href":"/references/api/vendor/payout-accounts/create-onboarding"}]}]},{"group":"Store API","pages":[{"title":"Store API","href":"/references/api/store"},{"group":"Products","pages":[{"title":"List Products","api":"GET /store/products","href":"/references/api/store/products/list-products"},{"title":"Retrieve Product","api":"GET /store/products/{id}","href":"/references/api/store/products/retrieve-product"},{"title":"List Product Categories","api":"GET /store/product-categories","href":"/references/api/store/product-categories/list-product-categories"},{"title":"Retrieve Product Category","api":"GET /store/product-categories/{id}","href":"/references/api/store/product-categories/retrieve-product-category"},{"title":"List Product Attributes","api":"GET /store/product-attributes","href":"/references/api/store/product-attributes/list-product-attributes"},{"title":"Retrieve Product Attribute","api":"GET /store/product-attributes/{id}","href":"/references/api/store/product-attributes/retrieve-product-attribute"}]},{"group":"Sellers","pages":[{"title":"List Sellers","api":"GET /store/sellers","href":"/references/api/store/sellers/list-sellers"},{"title":"Retrieve Seller","api":"GET /store/sellers/{id}","href":"/references/api/store/sellers/retrieve-seller"}]},{"group":"Offers","pages":[{"title":"List Offers","api":"GET /store/offers","href":"/references/api/store/offers/list-offers"},{"title":"Retrieve Offer","api":"GET /store/offers/{id}","href":"/references/api/store/offers/retrieve-offer"}]},{"group":"Search","pages":[]},{"group":"Carts","pages":[{"title":"Add Line Item","api":"POST /store/carts/{id}/line-items","href":"/references/api/store/carts/add-line-item"},{"title":"Add Shipping Method","api":"POST /store/carts/{id}/shipping-methods","href":"/references/api/store/carts/add-shipping-methods"},{"title":"Apply Promotions","api":"POST /store/carts/{id}/promotions","href":"/references/api/store/carts/apply-promotions"},{"title":"Complete Cart","api":"POST /store/carts/{id}/complete","href":"/references/api/store/carts/complete-cart"},{"title":"List Shipping Options","api":"GET /store/shipping-options","href":"/references/api/store/shipping-options/list-shipping-options"}]},{"group":"Order Groups","pages":[{"title":"List Order Groups","api":"GET /store/order-groups","href":"/references/api/store/order-groups/list-order-groups"},{"title":"Retrieve Order Group","api":"GET /store/order-groups/{id}","href":"/references/api/store/order-groups/retrieve-order-group"}]}]},{"group":"Configuration","pages":[{"title":"Configuration","href":"/references/configuration"}]}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/user-guide/admin/overview"}]},{"tab":"Changelog","groups":[{"group":"Changelog","pages":[]}]}]},"basePath":"","title":"Batch Product Attributes - MercurJS Documentation","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","SectionHeading-uish4Ed2.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js"]}