update_post_type_field
ActiveTool of FavCRM
declared in 1.0.0
Update a field on a post type schema. Changing fieldType or flipping required=true is blocked when posts already use the field unless force=true is passed.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"postTypeId",
"fieldId"
],
"properties": {
"force": {
"type": "boolean",
"description": "Override safety guards. Required to change fieldType or flip required=true on a field that already has data in posts."
},
"label": {
"type": "string",
"description": "Display label"
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"fieldType"
],
"properties": {
"key": {
"type": "string",
"description": "snake_case key for this repeater child field. Auto-derived from label if omitted."
},
"label": {
"type": "string",
"description": "Human-readable child field label"
},
"options": {
"type": "object",
"description": "For select/multiselect child fields: { choices: [\"a\",\"b\"] }.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"helpText": {
"type": "string",
"description": "Optional hint shown in the UI"
},
"required": {
"type": "boolean",
"description": "Whether this child field is required on every repeater row"
},
"fieldType": {
"enum": [
"text",
"textarea",
"richtext",
"number",
"boolean",
"date",
"datetime",
"select",
"multiselect",
"url",
"email",
"image",
"file",
"gallery",
"attachments",
"repeater"
],
"type": "string",
"description": "Child field type. Repeaters support scalar/select types plus singular upload fields: text, textarea, richtext, number, boolean, date, datetime, select, multiselect, url, email, image, file. Nested repeaters and array upload fields are not supported."
},
"sortOrder": {
"type": "number"
}
}
}
},
{
"type": "null"
}
],
"description": "Child fields for fieldType=\"repeater\"."
},
"fieldId": {
"type": "string",
"description": "Field ID"
},
"options": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "For URL fields, { uploadable: true } enables file upload while preserving a URL string in meta."
},
"helpText": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Help text shown next to the input"
},
"required": {
"type": "boolean",
"description": "Whether the field is required"
},
"fieldType": {
"enum": [
"text",
"textarea",
"richtext",
"number",
"boolean",
"date",
"datetime",
"select",
"multiselect",
"url",
"email",
"image",
"file",
"gallery",
"attachments",
"repeater"
],
"type": "string",
"description": "Field type"
},
"sortOrder": {
"type": "number",
"description": "Sort order (lower = earlier)"
},
"postTypeId": {
"type": "string",
"description": "Post type ID"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
FavCRM
https://github.com/favcrm/mcp
1/7 registries