Edit Field

PATCH {{baseUrl}}/api/v1/organizationFields/:field_id

This API edits a field

OAuth Scope

  • Desk.settings.UPDATE

Attributes

Attribute NameData TypeDescription
displayLabel<string>
max chars : 200
Name of the field on the UI
name<string>
max chars : 200
Name of the custom field
type<string>
max chars : 100
Data type of the field. Values allowed are Text, Number, Percent, Decimal, Currency, Date, Date Time, Email, Phone, PickList, Website, Textarea, Checkbox, Multiselect, Boolean and LargeText
maxLength<integer>
Maximum permissible length of the value in the field. Applicable for Text, Number, Decimal, and Currency fields
decimalPlaces<integer>
Number of decimal places the value in a field can take. Applicable for Decimal and Currency fields
roundingPrecision<integer>
Precision of the value in the field. Precision refers to the total number of digits in a decimal number. For example, the precision of 30.12 is 4. Applicable for Currency fields
roundingOption<string>
max chars : 120
Option to round off complex decimal numbers to the nearest whole number or shorter decimal number. Values allowed are roundOff, roundDown, and roundUp
defaultValue<string>
max chars : 120
Default value set for a field. Applicable for Checkbox fields
allowedValues<list>
Values allowed in a field. Applicable for PickList fields
layoutIds<list>
IDs of layouts configured for the module
isEncryptedField<boolean>
Key that returns if the value in the field is encrypted or not. The field types are Text, Number, Percent, Decimal, Email, Phone, URL which supports encryption
toolTip<string>
max chars : 200
the tool tip of the field
toolTipType<string>
max chars : 200
the tool tip of the field

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;displayLabel&quot;:&quot;Sample Text Field&quot;,&quot;apiName&quot;:&quot;cf_sample_text_field&quot;,&quot;isCustomField&quot;:true,&quot;toolTipType&quot;:&quot;placeHolder&quot;,&quot;showToHelpCenter&quot;:false,&quot;isEncryptedField&quot;:true,&quot;toolTip&quot;:&quot;Sample Text Field&quot;,&quot;id&quot;:&quot;4000000049001&quot;,&quot;type&quot;:&quot;Text&quot;,&quot;maxLength&quot;:40,&quot;isMandatory&quot;:false}