post https://{instance_zuid}.api.zesty.io/v1/env/settings
This creates a new env settings. Available request body property values.
Body: raw JSON
name | description |
---|---|
category | [string] Required. Unique. This will appear in the manager-ui . |
keyFriendly | [string] Required. Name that will be visible as label in the manager-ui |
key | [string] Required. A unique no-space identifier for this setting object. |
value | [string] Required. The default value. |
admin | [boolean] Required. If this settings can only be access by Admin users. |
parselyAccess | [boolean] Required. If this settings can be access in parsely. |
dataType | [string] Required. Values can be either checkbox , textarea , text or dropdown |
options | [string] Optional comma-separated string that will be used by checkbox and dropdown datatypes. |
tips | [string] Optional description that will be shown via a tooltip. |
Notes
- if
dataType
is set to"dropdown"
options
must contain a string value that follows this structure"key1:value1key2:value2..."
- if
dataType
is set to"checkbox"
options
must contain a string value that follows this structure"value1,value2"