Create Global Option Set
Create a global option set.
Use this to create a reusable global option set in your account. Inspect the returned record before continuing the synchronization.
Behaviour
Only the name and localized display name are required; you may also pass the general fields (description, status, tags) and the options to build the whole set in one call.
Extras are applied by follow-up update(s) after the set exists; if a step fails the set is still created and the response shows it without them, so compare the response with what you sent.
Send description: null to leave it empty.
Requires the globalOptionSets:write scope.
API key sent as a bearer token (mk_live_… / mk_test_…).
Data schema used by Create Global Option Set (POST /v1/global-option-sets). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.
Option set name (internal, not localized).
ColourCreated.
Invalid request data.
Missing or invalid API key.
The API key lacks the required scope (scope_denied), or the operation is not permitted for this account (operation_not_permitted).
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.
Internal server error.
POST /v1/global-option-sets HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 569
{
"name": "Colour",
"displayName": {
"en": "Colour",
"de": "Farbe"
},
"description": {
"en": "Pick a colour",
"de": "Wähle eine Farbe"
},
"status": "ACTIVE",
"tags": [
"text"
],
"options": [
{
"id": "af77627b-54d7-4039-86dc-599019320634",
"code": "RED",
"name": {
"en": "Red",
"de": "Rot"
},
"comment": {
"en": "Warm tone",
"de": "Warmer Ton"
},
"priceCode": "text",
"fbPriceCode": "text",
"additionalPriceCode": "text",
"material3dId": "text",
"arMaterial3dId": "text",
"additionalPriceCodeQuantity": 1,
"filters": {
"<parameterId>": [
"<valueId>"
]
},
"metafields": {
"lead-time-weeks": 10,
"care-label": "Wipe clean"
},
"src": "text"
}
]
}{
"data": {
"optionSetId": "OPT-123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"displayName": "Chair",
"description": "Chair",
"status": "ACTIVE",
"numberOfOptions": 1,
"createdAt": "text",
"modifiedAt": "text",
"tags": [
"text"
],
"options": [
{
"id": "text",
"code": "text",
"name": "Chair",
"comment": "Chair",
"priceCode": "text",
"fbPriceCode": "text",
"additionalPriceCode": "text",
"material3dId": "text",
"arMaterial3dId": "text",
"additionalPriceCodeQuantity": 1,
"filters": {
"<parameterId>": [
"<valueId>"
]
},
"metafields": {
"lead-time-weeks": 10,
"care-label": "Wipe clean"
},
"src": "text"
}
]
}
}Last updated
Was this helpful?