MCPOutils MCP/Champs personnalisés/update_custom_field

update_custom_field

Writecustom-fields:write

Edit an existing custom-field definition's label, required flag, select options, or display order. The field's type and key cannot be changed after creation — to change the type, archive this field with delete_custom_field and create a new one. Pass only the fields you want to change. Identify the field by its id (from list_custom_field_definitions). You don't pass an agency — it comes from your credentials.

Paramètres
definitionIdstringobligatoire
The id of the custom-field definition to update (required).
labelstringfacultatif
New display label.
requiredbooleanfacultatif
Whether the field is required.
optionsstring[]facultatif
Replaces the selectable options (for single_select / multi_select fields).
ordernumberfacultatif
New display order (lower shows first).
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_custom_field",
    "arguments": {
      "definitionId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.