Update Custom Field
Replace a custom-field definition for the supplied resourceType. Read the current definition first and include every setting that must be retained.
Provide the complete required definition, including its key, name, type and validationConfig. Optional settings are not a partial patch. SYSTEM parameters cannot be changed through this API.
Requires the customFields:write scope.
API key sent as a bearer token (mk_live_… / mk_test_…).
^PARAM-[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}$Data schema used by Update Custom Field (PUT /v1/custom-fields/{parameterId}). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.
The resource whose records carry this custom field.
^[a-zA-Z0-9-_]+$Successful response.
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).
Resource not found.
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.
PUT /v1/custom-fields/{parameterId} HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1732
{
"resourceType": "OPTION_SET",
"key": "text",
"name": {
"en": "Chair",
"de": "Stuhl"
},
"description": {
"en": "Chair",
"de": "Stuhl"
},
"type": "TEXT",
"status": "ACTIVE",
"validationConfig": {
"min": 1,
"max": 1,
"decimalPlaces": 1,
"regexExpression": "text",
"validationMessage": {
"en": "Chair",
"de": "Stuhl"
},
"isRequired": true,
"isUnique": true,
"showOnFrontend": true
},
"typeConfig": {
"checkboxContent": {
"showInFooter": true,
"content": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"checkedLabel": {
"en": "Chair",
"de": "Stuhl"
},
"uncheckedLabel": {
"en": "Chair",
"de": "Stuhl"
}
},
"selectOptions": [
{
"id": "text",
"name": {
"en": "Chair",
"de": "Stuhl"
},
"value": "text"
}
],
"fileContent": {
"fileLimit": "SINGLE_FILE",
"minFiles": 1,
"maxFiles": 1,
"fileTypes": {
"acceptAllFileTypes": true,
"images": true,
"videos": true,
"documents": true,
"archives": true
},
"fileExceptions": {
"allowAdditionalFileTypes": [
"text"
],
"blockSpecificFileTypes": [
"text"
]
}
},
"metaObjectContent": [
{
"parameterId": "text",
"key": "text",
"type": "TEXT",
"name": {
"en": "Chair",
"de": "Stuhl"
},
"description": {
"en": "Chair",
"de": "Stuhl"
},
"validationConfig": {
"min": 1,
"max": 1,
"decimalPlaces": 1,
"regexExpression": "text",
"validationMessage": {
"en": "Chair",
"de": "Stuhl"
},
"isRequired": true,
"isUnique": true,
"showOnFrontend": true
},
"typeConfig": {
"checkboxContent": {
"showInFooter": true,
"content": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"checkedLabel": {
"en": "Chair",
"de": "Stuhl"
},
"uncheckedLabel": {
"en": "Chair",
"de": "Stuhl"
}
},
"selectOptions": [
{
"id": "text",
"name": {
"en": "Chair",
"de": "Stuhl"
},
"value": "text"
}
],
"fileContent": {
"fileLimit": "SINGLE_FILE",
"minFiles": 1,
"maxFiles": 1,
"fileTypes": {
"acceptAllFileTypes": true,
"images": true,
"videos": true,
"documents": true,
"archives": true
},
"fileExceptions": {
"allowAdditionalFileTypes": [
"text"
],
"blockSpecificFileTypes": [
"text"
]
}
}
}
}
]
}
}{
"data": {
"parameterId": "text",
"resourceType": "OPTION_SET",
"key": "text",
"name": "Chair",
"description": "Chair",
"type": "TEXT",
"source": "SYSTEM",
"status": "ACTIVE",
"validationConfig": {
"min": 1,
"max": 1,
"decimalPlaces": 1,
"regexExpression": "text",
"validationMessage": "Chair",
"isRequired": true,
"isUnique": true,
"showOnFrontend": true
},
"typeConfig": {
"checkboxContent": {
"showInFooter": true,
"content": null,
"checkedLabel": "Chair",
"uncheckedLabel": "Chair"
},
"selectOptions": [
{
"id": "text",
"name": "Chair",
"value": "text"
}
],
"fileContent": {
"fileLimit": "SINGLE_FILE",
"minFiles": 1,
"maxFiles": 1,
"fileTypes": {
"acceptAllFileTypes": true,
"images": true,
"videos": true,
"documents": true,
"archives": true
},
"fileExceptions": {
"allowAdditionalFileTypes": [
"text"
],
"blockSpecificFileTypes": [
"text"
]
}
},
"metaObjectContent": [
{
"parameterId": "text",
"key": "text",
"type": "TEXT",
"name": "Chair",
"description": "Chair",
"validationConfig": {
"min": 1,
"max": 1,
"decimalPlaces": 1,
"regexExpression": "text",
"validationMessage": "Chair",
"isRequired": true,
"isUnique": true,
"showOnFrontend": true
},
"typeConfig": {
"checkboxContent": {
"showInFooter": true,
"content": null,
"checkedLabel": "Chair",
"uncheckedLabel": "Chair"
},
"selectOptions": [
{
"id": "text",
"name": "Chair",
"value": "text"
}
],
"fileContent": {
"fileLimit": "SINGLE_FILE",
"minFiles": 1,
"maxFiles": 1,
"fileTypes": {
"acceptAllFileTypes": true,
"images": true,
"videos": true,
"documents": true,
"archives": true
},
"fileExceptions": {
"allowAdditionalFileTypes": [
"text"
],
"blockSpecificFileTypes": [
"text"
]
}
}
}
}
]
},
"createdAt": "text",
"modifiedAt": "text"
}
}Last updated
Was this helpful?