> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/api/global-option-sets/update-global-option-set-options.md).

# Update Global Option Set Options

Replace the full options list of a global option set.

Read the existing global option set first. Check the replacement rules below before sending a partial list or localized value.

### Behaviour

This is a full replacement: each option is stored as sent, so include every field you want to keep (e.g. `filters`, `customFields`) — omitting one clears it.

Options are stored in the order you send them. Set `position` to place an option elsewhere, counting from 1: the other options fill the remaining places in array order, a position past the end puts the option last, and two options cannot share a position.

Each option is checked as the options of a product's `MANUAL` block are: `code` takes letters, digits, `_`, `-`, `/` and `\` and is unique in the set ignoring case; price codes are stored in upper case; `additionalPriceCodeQuantity` is required with `additionalPriceCode` and only allowed with it; `src` is the URL of a PNG, JPEG, WebP or GIF image in your media library; and 3D materials, `customFields` keys and `filters` must be your account's. Reads return every option field, `null` when unset, so a read option can be sent back as it is. `metafields`, the older name of `customFields`, is deprecated: writes still take it and reads still return it, with the same values.

Returns `404 not_found` for a 3D material, media-library file, option custom field or filter your account does not have, and `400 wrong_data` for an option that breaks these rules.

Requires the `globalOptionSets:write` scope.

```json
{"openapi":"3.1.0","info":{"title":"Mimeeq External API","version":"1.3.0"},"tags":[{"name":"Global Option Sets","description":"Manage reusable option sets belonging to your Mimeeq account. An option set contains choices and their metadata that can be used in product configurators.\n\nUse this section to maintain shared choices such as finishes or materials, instead of maintaining equivalent option data separately. Collection Sets group option sets; Custom Fields defines additional fields carried by options.\n\n## What you can do\n\n| Task | Reference |\n| --- | --- |\n| Find available global option sets | [List Global Option Sets](https://help.mimeeq.com/api/global-option-sets/list-global-option-sets) |\n| Add a new global option set | [Create Global Option Set](https://help.mimeeq.com/api/global-option-sets/create-global-option-set) |\n| Read one global option set | [Get Global Option Set](https://help.mimeeq.com/api/global-option-sets/get-global-option-set) |\n| Change global option set | [Update Global Option Set](https://help.mimeeq.com/api/global-option-sets/update-global-option-set) |\n| Remove a global option set | [Delete Global Option Set](https://help.mimeeq.com/api/global-option-sets/delete-global-option-set) |\n| Change global option set options | [Update Global Option Set Options](https://help.mimeeq.com/api/global-option-sets/update-global-option-set-options) |\n| Add or Update Global Option Set Options | [Add or Update Global Option Set Options](https://help.mimeeq.com/api/global-option-sets/add-or-update-global-option-set-options) |\n| Remove Global Option Set Options | [Remove Global Option Set Options](https://help.mimeeq.com/api/global-option-sets/remove-global-option-set-options) |\n| Copy global option set | [Duplicate Global Option Set](https://help.mimeeq.com/api/global-option-sets/duplicate-global-option-set) |\n\n## Before you start\n\nYour API key needs `globalOptionSets:read` to read these resources. Use `globalOptionSets:write` for write operations. Deleting needs `globalOptionSets:delete`.\n\n## Important behaviour\n\nGeneral settings and option membership have separate operations. PUT on the options list replaces every option; POST adds or replaces the options supplied; the remove operation removes selected IDs. A submitted option is a complete value, not a partial field patch. Preserve its other fields and translations when editing it. List responses are localized; Get without lang returns complete translation maps.\n\nA deleted option set goes to the trash, where it can be restored in the Mimeeq app; a set that products still use cannot be deleted."}],"servers":[{"url":"https://admin.mimeeqapi.com","description":"Production API"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as a bearer token (mk_live_… / mk_test_…)."}},"schemas":{"GlobalOptionSetsDetail":{"type":"object","properties":{"data":{"type":"object","properties":{"optionSetId":{"type":"string","pattern":"^OPT-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Global option set identifier (OPT-<uuid>)."},"name":{"type":"string"},"displayName":{"anyOf":[{"anyOf":[{"type":"string","title":"Translated text"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"title":"All languages"}]},{"type":"null"}],"description":"Translated text when `lang` is set, otherwise the full `{ language: text }` map. Languages with no text are omitted, and a field with no text at all is null."},"description":{"anyOf":[{"anyOf":[{"type":"object","properties":{"html":{"type":"string","description":"Draft.js content rendered as HTML."},"text":{"type":"string","description":"Plain text extracted from Draft.js blocks."}},"required":["html","text"],"additionalProperties":false,"title":"Single language"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"html":{"type":"string","description":"Draft.js content rendered as HTML."},"text":{"type":"string","description":"Plain text extracted from Draft.js blocks."}},"required":["html","text"],"additionalProperties":false},"title":"All languages"}]},{"type":"null"}],"description":"Formatted description: one `{ html, text }` with `lang` (and on the list), a `{ language: { html, text } }` map otherwise; null when there is none."},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"numberOfOptions":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Place of the option in the set, starting at 1."},"code":{"type":"string"},"name":{"anyOf":[{"anyOf":[{"type":"string","title":"Translated text"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"title":"All languages"}]},{"type":"null"}],"description":"Translated text when `lang` is set, otherwise the full `{ language: text }` map. Languages with no text are omitted, and a field with no text at all is null."},"comment":{"anyOf":[{"anyOf":[{"type":"string","title":"Translated text"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"title":"All languages"}]},{"type":"null"}],"description":"Translated text when `lang` is set, otherwise the full `{ language: text }` map. Languages with no text are omitted, and a field with no text at all is null."},"priceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"fbPriceCode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Full-back price code."},"additionalPriceCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"additionalPriceCodeQuantity":{"anyOf":[{"type":"number"},{"type":"null"}]},"material3dId":{"anyOf":[{"type":"string"},{"type":"null"}]},"arMaterial3dId":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},{"type":"null"}]},"customFields":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"src":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL of the option image."},"codeNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Number of the option in configuration codes, after its option set's letter (`a3` is option 3 of the set with letter `a`). Assigned by Mimeeq when the option is added and never changed, so moving the option keeps it; it is not the position. Null for an option saved without one."},"metafields":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Deprecated: the same values as customFields.","deprecated":true}},"required":["id","position","code","name","comment","priceCode","fbPriceCode","additionalPriceCode","additionalPriceCodeQuantity","material3dId","arMaterial3dId","filters","customFields","src","codeNumber","metafields"],"additionalProperties":false}},"connectedProducts":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Product identifier (PROD-<uuid>), for Get Product."},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"variantCode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The product's variant code (its prefix)."},"status":{"anyOf":[{"type":"string","enum":["ACTIVE","INACTIVE"]},{"type":"null"}]}},"required":["productId","name","variantCode","status"],"additionalProperties":false},"description":"Products with a block that uses this option set directly. Products that use it through a collection set are not listed here: see each collection set's `connectedProducts`. Read-only."},"connectedCollectionSets":{"type":"array","items":{"type":"object","properties":{"collectionSetId":{"type":"string","description":"Collection set identifier, for Get Collection Set."},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["ACTIVE","INACTIVE"]},{"type":"null"}]}},"required":["collectionSetId","name","status"],"additionalProperties":false},"description":"Your collection sets that contain this option set. Read-only."}},"required":["optionSetId","name","displayName","description","status","numberOfOptions","createdAt","modifiedAt","tags","options","connectedProducts","connectedCollectionSets"],"additionalProperties":false}},"required":["data"],"additionalProperties":false,"description":"Data schema used by Get Global Option Set (GET /v1/global-option-sets/{optionSetId}). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."},"PublicError":{"description":"An API error response. Use code and the HTTP status to classify the failure, message and optional details for context, and requestId when reporting it. Edge firewall responses may omit requestId.","type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","description":"Present on every error the API itself returns; absent when the edge firewall rejected the request."},"details":{"description":"Optional error-specific details (e.g. per-field validation reasons)."}}},"GlobalOptionSetsOptionsRequest":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Option id, unique in the set; reuse the stored id to keep or change an option."},"code":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_\\-/\\\\]+$","description":"Option code, unique in the set ignoring case."},"name":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"comment":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},"priceCode":{"description":"Stored in upper case.","anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_\\-/\\\\]+$"},{"type":"null"}]},"fbPriceCode":{"description":"Full-back price code, stored in upper case.","anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_\\-/\\\\]+$"},{"type":"null"}]},"additionalPriceCode":{"description":"Stored in upper case.","anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_\\-/\\\\]+$"},{"type":"null"}]},"additionalPriceCodeQuantity":{"description":"Quantity the additionalPriceCode applies to; required with it and only allowed with it.","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"material3dId":{"description":"3D material (DMAT-…) of the option.","anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"arMaterial3dId":{"description":"3D material used in AR.","anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"filters":{"description":"Filter group id -> ids of its values the option has, from your account's filters.","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},{"type":"null"}]},"customFields":{"description":"Values of your account's option custom fields, by key.","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"src":{"description":"URL of a PNG, JPEG, WebP or GIF image in your media library, as reads return it.","anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}]},"codeNumber":{"description":"Read-only: assigned by Mimeeq, so a read option can be sent back. Ignored.","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"metafields":{"description":"Deprecated: use customFields, which holds the same values.","deprecated":true,"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"position":{"description":"Place of the option in the set after the change, starting at 1. A position past the end puts it last; options without one fill the other places in order.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","code","name"],"additionalProperties":false}}},"required":["options"],"additionalProperties":false,"description":"Data schema used by Update Global Option Set Options (PUT /v1/global-option-sets/{optionSetId}/options). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."}}},"paths":{"/v1/global-option-sets/{optionSetId}/options":{"put":{"summary":"Update Global Option Set Options","tags":["Global Option Sets"],"description":"Replace the full options list of a global option set.\n\nRead the existing global option set first. Check the replacement rules below before sending a partial list or localized value.\n\n## Behaviour\n\nThis is a full replacement: each option is stored as sent, so include every field you want to keep (e.g. `filters`, `customFields`) — omitting one clears it.\n\nOptions are stored in the order you send them. Set `position` to place an option elsewhere, counting from 1: the other options fill the remaining places in array order, a position past the end puts the option last, and two options cannot share a position.\n\nEach option is checked as the options of a product's `MANUAL` block are: `code` takes letters, digits, `_`, `-`, `/` and `\\` and is unique in the set ignoring case; price codes are stored in upper case; `additionalPriceCodeQuantity` is required with `additionalPriceCode` and only allowed with it; `src` is the URL of a PNG, JPEG, WebP or GIF image in your media library; and 3D materials, `customFields` keys and `filters` must be your account's. Reads return every option field, `null` when unset, so a read option can be sent back as it is. `metafields`, the older name of `customFields`, is deprecated: writes still take it and reads still return it, with the same values.\n\nReturns `404 not_found` for a 3D material, media-library file, option custom field or filter your account does not have, and `400 wrong_data` for an option that breaks these rules.\n\nRequires the `globalOptionSets:write` scope.","responses":{"200":{"description":"Successful response.","headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalOptionSetsDetail"}}}},"400":{"description":"Invalid request data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}}},"403":{"description":"The API key lacks the required scope (`scope_denied`), the operation is not permitted for this account (`operation_not_permitted`), or the account is inactive (`account_inactive`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"429":{"description":"The API key exceeded its request rate (`rate_limit_exceeded`) or its monthly quota (`quota_exceeded`). Both carry `Retry-After`; the `RateLimit-*` headers accompany `rate_limit_exceeded` only, since a spent quota says nothing about the bucket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}}},"parameters":[{"name":"optionSetId","in":"path","required":true,"schema":{"type":"string","pattern":"^OPT-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Global option set identifier (OPT-<uuid>)."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalOptionSetsOptionsRequest"}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.mimeeq.com/api/global-option-sets/update-global-option-set-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
