System APIs
Create a new system setting definition
HTTP method | POST |
URI | https://api.rambase.net/system/setting-definitions |
Supported formats | Xml, Html, Json (ex. $format=json) |
Successful HTTP status code | 201 |
API resource identifier | 3022, version 2 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
Key
Required/mandatory field
Setting name used to reference the setting
>{String}</Key>Name
Required/mandatory field
Short name/description of the setting definition
>{String}</Name>Description
Descrtiption of the setting definition
This field is optional.
>{String}</Description>DefaultValue
Default value if setting not set for system
This field is optional.
>{String}</DefaultValue>DataType
Required/mandatory field
Allowed values for setting. Used for validation of input from user.
Input must match the following regular expression pattern: ^(BOOLEAN|STRING|INTEGER|DECIMAL)$
>{String}</DataType>MinimumValue
For data type integer or decimal a minimum value can be specified, e.g. if a value range is allowed.
This field is optional.
>{Decimal}</MinimumValue>MaximumValue
For data type integer or decimal a maximum value can be specified, e.g. if a value range is allowed.
This field is optional.
>{Decimal}</MaximumValue>IsRequired
Flag if setting is required/must be set before using system. If this is a sub-setting, this settings must be set when the parent setting is turned on. The user must activate this setting (a system setting value must exist for this setting). If a default value is also specified, that will actually be a suggested value, the setting must still be activated.
Default value: False
This field is optional.
>{Boolean}</IsRequired>ModuleId
Required/mandatory field
Module identifier
Minimum value: 100000
>{Integer}</ModuleId>ParentSystemSettingDefinition
This field is optional.
>SystemSettingDefinitionId
System setting definition identifier
Minimum value: 100000
This field is optional.
>{Integer}</SystemSettingDefinitionId>DomainValueList
This field is optional.
>Object
Object/archive/context of the values
This field is optional.
>{String}</Object>Field
Fieldname of the DOV
This field is optional.
>{String}</Field>ViewPermission
This field is optional.
>PermissionId
Permission identifier
Minimum value: 100000
This field is optional.
>{Integer}</PermissionId>UpdatePermission
This field is optional.
>PermissionId
Permission identifier
Minimum value: 100000
This field is optional.
>{Integer}</PermissionId>Key
Required/mandatory field
Setting name used to reference the setting
": "{String}",Name
Required/mandatory field
Short name/description of the setting definition
": "{String}",Description
Descrtiption of the setting definition
This field is optional.
": "{String}",DefaultValue
Default value if setting not set for system
This field is optional.
": "{String}",DataType
Required/mandatory field
Allowed values for setting. Used for validation of input from user.
Input must match the following regular expression pattern: ^(BOOLEAN|STRING|INTEGER|DECIMAL)$
": "{String}",MinimumValue
For data type integer or decimal a minimum value can be specified, e.g. if a value range is allowed.
This field is optional.
": "{Decimal}",MaximumValue
For data type integer or decimal a maximum value can be specified, e.g. if a value range is allowed.
This field is optional.
": "{Decimal}",IsRequired
Flag if setting is required/must be set before using system. If this is a sub-setting, this settings must be set when the parent setting is turned on. The user must activate this setting (a system setting value must exist for this setting). If a default value is also specified, that will actually be a suggested value, the setting must still be activated.
Default value: False
This field is optional.
": "{Boolean}",ModuleId
Required/mandatory field
Module identifier
Minimum value: 100000
": "{Integer}"ParentSystemSettingDefinition
This field is optional.
": {SystemSettingDefinitionId
System setting definition identifier
Minimum value: 100000
This field is optional.
": "{Integer}"DomainValueList
This field is optional.
": {Object
Object/archive/context of the values
This field is optional.
": "{String}",Field
Fieldname of the DOV
This field is optional.
": "{String}"ViewPermission
This field is optional.
": {PermissionId
Permission identifier
Minimum value: 100000
This field is optional.
": "{Integer}"UpdatePermission
This field is optional.
": {PermissionId
Permission identifier
Minimum value: 100000
This field is optional.
": "{Integer}"The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
SystemSettingDefinitionId
System setting definition identifier
>{Integer}</SystemSettingDefinitionId>Status
Status of system setting definition
Possible domain values can be found here
>{Integer}</Status>Key
Setting name used to reference the setting
>{String}</Key>Name
Short name/description of the setting definition
>{String}</Name>Description
Descrtiption of the setting definition
>{String}</Description>DefaultValue
Default value if setting not set for system
>{String}</DefaultValue>DataType
Allowed values for setting. Used for validation of input from user.
>{String}</DataType>MinimumValue
For data type integer or decimal a minimum value can be specified, e.g. if a value range is allowed.
>{Decimal}</MinimumValue>MaximumValue
For data type integer or decimal a maximum value can be specified, e.g. if a value range is allowed.
>{Decimal}</MaximumValue>IsRequired
Flag if setting is required/must be set before using system. If this is a sub-setting, this settings must be set when the parent setting is turned on. The user must activate this setting (a system setting value must exist for this setting). If a default value is also specified, that will actually be a suggested value, the setting must still be activated.
>{Boolean}</IsRequired>ModuleId
Module identifier
>{Integer}</ModuleId>Name
Name of the module
>{String}</Name>ModuleLink
Module reference
>{String}</ModuleLink>SystemSettingDefinitionId
System setting definition identifier
>{Integer}</SystemSettingDefinitionId>SystemSettingDefinitionLink
System setting definition reference
>{String}</SystemSettingDefinitionLink>Object
Object/archive/context of the values
>{String}</Object>Field
Fieldname of the DOV
>{String}</Field>PermissionId
Permission identifier
>{Integer}</PermissionId>Name
Name of the permission
>{String}</Name>PermissionLink
Permission reference
>{String}</PermissionLink>PermissionId
Permission identifier
>{Integer}</PermissionId>Name
Name of the permission
>{String}</Name>PermissionLink
Permission reference
>{String}</PermissionLink>IsChanged
Tells whether this object has been changed locally and are ready to be committed to the Repository
>{Boolean}</IsChanged>ChangedBy
EmployeeId of the employee making the change
>UserId
User identifier
>{Integer}</UserId>UserLink
User reference
>{String}</UserLink>IsPendingDeployment
Tells whether this object has been changed locally and is ready to be deployed from the Repository
>{Boolean}</IsPendingDeployment>SystemSettingDefinitionId
System setting definition identifier
": "{Integer}",Status
Status of system setting definition
Possible domain values can be found here
": "{Integer}",Key
Setting name used to reference the setting
": "{String}",Name
Short name/description of the setting definition
": "{String}",Description
Descrtiption of the setting definition
": "{String}",DefaultValue
Default value if setting not set for system
": "{String}",DataType
Allowed values for setting. Used for validation of input from user.
": "{String}",MinimumValue
For data type integer or decimal a minimum value can be specified, e.g. if a value range is allowed.
": "{Decimal}",MaximumValue
For data type integer or decimal a maximum value can be specified, e.g. if a value range is allowed.
": "{Decimal}",IsRequired
Flag if setting is required/must be set before using system. If this is a sub-setting, this settings must be set when the parent setting is turned on. The user must activate this setting (a system setting value must exist for this setting). If a default value is also specified, that will actually be a suggested value, the setting must still be activated.
": "{Boolean}",ModuleId
Module identifier
": "{Integer}",Name
Name of the module
": "{String}",ModuleLink
Module reference
": "{String}"SystemSettingDefinitionId
System setting definition identifier
": "{Integer}",SystemSettingDefinitionLink
System setting definition reference
": "{String}"Object
Object/archive/context of the values
": "{String}",Field
Fieldname of the DOV
": "{String}"PermissionId
Permission identifier
": "{Integer}",Name
Name of the permission
": "{String}",PermissionLink
Permission reference
": "{String}"PermissionId
Permission identifier
": "{Integer}",Name
Name of the permission
": "{String}",PermissionLink
Permission reference
": "{String}",IsChanged
Tells whether this object has been changed locally and are ready to be committed to the Repository
": "{Boolean}",ChangedBy
EmployeeId of the employee making the change
": {UserId
User identifier
": "{Integer}",UserLink
User reference
": "{String}"IsPendingDeployment
Tells whether this object has been changed locally and is ready to be deployed from the Repository
": "{Boolean}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 101606 HTTP 404 | Module not found |
Error 101079 HTTP 400 | Mismatch in size of revision parameters |
Error 103580 HTTP 404 | Setting definition not found |
Error 103582 HTTP 400 | Settings that have sub-settings can not be assigned as a sub-setting |
Error 103581 HTTP 400 | Setting name is required |
Error 103583 HTTP 400 | Cannot change setting name on active setting definitions |
Error 103584 HTTP 400 | The name contains illegal characters. Only a-z, A-Z and 0-9 are allowed. |
Error 103585 HTTP 400 | Setting with name {0} already exists |
Error 101423 HTTP 400 | The Data type is not valid |
Error 103586 HTTP 400 | The data type of default-/minimum-/maximum value must correspond with data type of the setting definition |
Error 103587 HTTP 400 | Datatype boolean can not have any default, minimum or maximum value |
Error 103588 HTTP 400 | Datatype String can not have a minimum or maximum value |
Error 103589 HTTP 400 | Minimum value cannot be larger than maximum value |
Error 103590 HTTP 400 | The default value must be within the range of the minimum and maximum values |
Error 103591 HTTP 400 | The chosen datatype can not have domain values |
Error 103592 HTTP 400 | The domain value object reference contains illegal characters. Only a-z, A-Z and 0-9 can be used. |
Error 103593 HTTP 400 | The domain value field reference contains illegal characters. Only a-z, A-Z and 0-9 can be used. |
Error 103594 HTTP 400 | The selected permission is not active |