...
Code Block | ||
---|---|---|
| ||
{ "id": 1006, "entityName": "testcase", "systemField": false, "fieldTypeMetadata": 1, "fieldName": "zcf_1006", "columnName": "zcf_1006", "displayName": "Text customfield2", "mandatory": false, "searchable": true, "importable": true, "exportable": true, "length": 1024, "searchFieldName": "textcf2", "createdOn": 1588072804836, "projectIds": [], "unique": false, "allProject": true, "isVisible": true } |
Specify values for the custom field.
Use the following operation to specify values for the custom field:
PUT /flex/services/rest/v3/admin/preference
Request format
To specify a value for a custom field, send a PUT request to the following URL:
http://{ZEPHYR-SERVER}/flex/services/rest/v3/admin/preference
Request body
Code Block | ||
---|---|---|
| ||
{
"value": "[{\"value\":\"option 1\",\"id\":\"1\"},{\"value\":\"option 2\",\"id\":\"2\"}]",
"accessLevel": 0,
"defaultValue": "[{\"value\":\"option 1\",\"id\":\"1\"},{\"value\":\"option 2\",\"id\":\"2\"}]",
"editable": true,
"isCustomizable": true,
"name": "testcase.zcf_1008.LOV"
} |
testcase.zcf_1008.Lov
is the field name of the created picklist custom field appended with the entity name.
Response body
Code Block | ||
---|---|---|
| ||
{
"name": "testcase.zcf_1008.LOV",
"value": "[{\"value\":\"option 1\",\"id\":\"1\"},{\"value\":\"option 2\",\"id\":\"2\"}]",
"defaultValue": "[{\"value\":\"option 1\",\"id\":\"1\"},{\"value\":\"option 2\",\"id\":\"2\"}]",
"isCustomizable": true,
"editable": true,
"accessLevel": 0
} |
See Also
...