MCPFerramentas MCP/Campos personalizados/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.
Parâmetros
definitionIdstringobrigatório
The id of the custom-field definition to update (required).
labelstringopcional
New display label.
requiredbooleanopcional
Whether the field is required.
optionsstring[]opcional
Replaces the selectable options (for single_select / multi_select fields).
ordernumberopcional
New display order (lower shows first).
Exemplo de solicitação
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "update_custom_field",
"arguments": {
"definitionId": "string"
}
}
}Exemplo de resposta
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.