Copy PageUpdate custom fieldputhttps://api.wafeq.com/v1/custom-fields/{id}/Endpoint for updating an existing custom field.Path ParamsidstringrequiredA unique value identifying this custom field.Body Paramsapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataThe payload to create or update a custom field.apply_toarray of stringsrequiredThe groups this custom field applies to. View the enum referenceAdd stringconfigrequiredThe configuration of the custom field, containing field_type and metadata. The metadata structure depends on field_type: SELECT fields include a choices array, LOOKUP fields include an entity_type, and other types have empty metadata.One ofCustomFieldSelectModelCustomFieldNumberModelCustomFieldTextModelCustomFieldLongTextModelCustomFieldDateModelCustomFieldLookupModelCustomFieldCalculatedModelThe configuration of a select custom field.field_typestringenumrequiredThe type of the custom field. SELECT - Select SELECTAllowed:SELECTmetadataobjectrequiredThe settings of the select custom field.CustomFieldSelectMetadataModel objectis_activebooleanWhether the custom field is active.truefalseis_line_item_fieldbooleanWhether the custom field is set on line items instead of on the document.truefalseis_visiblebooleanWhether the custom field is visible.truefalsenamestringlength ≤ 100The english name of the custom field.name_arstringlength ≤ 100The arabic name of the custom field.HeadersX-Wafeq-Idempotency-KeystringClient-provided UUID to uniquely identify a requestcontent-typestringenumDefaults to application/jsonGenerated from available request content typesapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataAllowed:application/jsonapplication/x-www-form-urlencodedmultipart/form-dataResponse200400403Permission denied or addon limit reached.Updated 3 days agoPartial update custom fieldList debit notes