Updates the list of options of a picklist pick list custom field.
Warning |
---|
Not implemented. Currently hidden page. |
This method is used for custom fields of type: Combo, ComboEditable and ComboMultiSelect only.
URL
(PUT) /api/settings/customfields/{id}/options
PARAMETERS
The method has no parameters.
...
The result is a JSON array with one element per custom field:
...
domain
...
The object to which the custom field is attached. This can be any of:
- Segment
- Project
- Resource
- Order
- Company
- Person
- Job
- Invoice
...
customFieldId
URL parameters are:
id | The unique ID of the custom field for a given domain.The IDs are CustomStr1, CustomStr2…. | string |
od | The ascending display order of the field when displayed in forms. | int |
title | The name of the custom field as provided by the administrator. | string |
desc | Optional internal description. | string |
type | The field type. Can be any of:
| string |
max | Maximum value length for String and ComboEditable fields. Disregarded for all other field types. | int |
mandatory | Indicates if a value must be supplied when editing a field. | bool |
options | A list of picklist options proposed to user. Used with field types Combo and ComboEditable. | string[] |
enabled | Indicates if the field is enabled or not. | bool |
accinternal | A numeric valie specifying the access to this field by internal users:
| int |
accexternal | A numeric valie specifying the access to this field by internal users:
| int |
modes | Optional list of advanced settings regarding use or accessibility of custom field. Segment custom fields:
Resource custom fields:
Company custom fields:
| string[] |
EXAMPLES
The following example is for a manager user accessing a job which is proposed to him/her. As a manager, the user has management level actions as well.
Code Block |
---|
[
] |
...
, Mandatory |
The request body contains a json array with the options.
request body | JSON array of options. If null or [] then the system clears all options. Note that with custom fields of type Combo and ComboMultiSelect you need to specify at least one option. Double entries are automatically removed. | string[], Mandatory |
RESULTS
The method returns no result.