Support and Documentation


Important!
This documentation has been deprecated. We are migrating Oempro help articles to our new help portal. Take a look at more detailed help articles on our new help portal.

Sections:

  1. Description
  2. Oempro Version
  3. Request Parameters
  4. Response Parameters
  5. Error Codes

CustomField.Update

Description

Updates custom field information.

Oempro Version

4+

Request Parameters

SessionID = {string} (required)
Session ID which is needed to authenticate the access. It's optional and required for desktop applications only
Command = {CustomField.Update} (required)
API Command
ResponseFormat = {JSON | XML} (required)
Response format
JSONPCallBack = {bool}
Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP
CustomFieldID = {integer} (required)
ID of custom field to be updated
FieldName = {string} (required)
Name of new custom field
FieldType = {Single line | Paragraph text | Multiple choice | Drop down | Checkboxes | Hidden field} (required)
Type of new custom field
FieldDefaultValue = {string} (required)
Default value of new custom field
OptionLabel[n] = {string} (required)
label of nth option
OptionValue[n] = {string} (required)
value of nth option
OptionSelected = {array} (required)
array of selected option ids (Option ids are n)
ValidationMethod = {Disabled | Numbers | Letters | Numbers and letters | Email address | URL | Date | Time | Custom} (required)
Validation method of custom field
ValidationRule = {string} (required)
Validation rule of custom field
Visibility = {Public | User Only}
Whether to show custom field in subscriber area or not
IsRequired = {Yes | No}
Whether to make the custom field mandatory to fill in or not
IsUnique = {Yes | No}
Whether to force custom field entry to be unique or not
IsGlobal = {Yes | No}
If this parameter is set to 'Yes', custom field will be valid for all lists in the user account

Response Parameters

Success = {true | false}
States if there is an error or not
ErrorCode = {integer}
If there is an error, error's code

Error Codes

1
Custom field id is missing
2
Field name is missing
3
Field type is missing
4
Validation rule is missing
6
Custom field id is invalid
7
Field type is invalid
8
Validation method is invalid
9
Invalid visibility method
10
Invalid IsRequired value
11
Invalid IsUnique value
12
Invalid IsGlobal value
99998
Authentication failure or session expired
99999
Not enough privileges

Stay connected!