beel_patch_custom_field_option
Update a custom field option's text or archived status without altering saved invoices; rename or reactivate options and handle duplicate-name conflicts safely.
Instructions
Updates only the properties present in the body. Invoices already saved keep the text they were saved with: renaming or archiving an option never changes an invoice.
Rename:
valuereplaces the text. If another option of the field in the same scope — the same customer, or the common options for a common one — is equivalent to the new text (ignoring case, accents and repeated spaces), the answer is409withCUSTOM_FIELD_OPTION_DUPLICATEand nothing changes.Archive or reactivate:
is_archived. Options are never deleted.
BeeL API endpoint: PATCH /v1/companies/{company_id}/custom-fields/{key}/options/{option_id} (reference: https://docs.beel.es)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"key": "<key>",
"option_id": "<option_id>",
"body": "<body>"
},
"name": "beel_patch_custom_field_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key of the custom field: lowercase letters, digits and `_`, up to 64 characters. A key outside that format answers `422`. | |
| body | Yes | ||
| option_id | Yes | Unique identifier of the option. | |
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. |