Update Layout Field
PATCH {{baseUrl}}/api/v1/layouts/:layout_id/fields/{field_id}
This API updates details of a field in the layout.
OAuth Scope
Desk.settings.UPDATE
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expression | string | Formula Expression | |
isMandatory | string | Key that returns if a field is mandatory in a layout or not | |
defaultValue | string | Default value set for a field. Applicable for Checkbox fields and PickList fields | |
allowedValues | string | Values allowed in a field. Applicable for PickList fields | |
sortBy | string | Key that sorts values in a PickList field either alphabetically or by a user-defined order |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"displayLabel":"Multiselect 1","allowedValues":["option 3","option 4","option 1","option 2"],"apiName":"cf_multiselect_1","isCustomField":true,"defaultValue":"option 3","i18NLabel":"Multiselect 1","isSystemMandatory":false,"type":"Multiselect","name":"Multiselect 1","sortBy":"userDefined","id":"21000000023005","isRemovable":true,"maxLength":120,"isMandatory":true}