Documentation

/users/{userId}/customfields [GET]

ThoughtFarmer REST API Method: /users/{userId}/customfields [GET]

Retrieve all custom fields for a given user.
 
URL:
http://yourserver.com/api/users/{userId}/customfields

Response Formats:
JSON, XML

HTTP Method(s):
GET
 
Requires Authentication:
true, user making call must pass a valid token parameter

Parameters:

 Parameter Type Description
userId int Required. The user id of the user to retrieve
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - User not found

Example request
GET http://yourserver.com/api/users/{userId}/customfields
[
    {
        "customFieldId": 1,
        "type": "Tag",
        "name": "LanguagesSpoken",
        "value": "",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Languages spoken"
            }
        ]
    },
    {
        "customFieldId": 2,
        "type": "Tag",
        "name": "Technicalskills",
        "value": "",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Technical skills"
            }
        ]
    },
    {
        "customFieldId": 3,
        "type": "Tag",
        "name": "Certifications",
        "value": "",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Certifications"
            }
        ]
    },
    {
        "customFieldId": 4,
        "type": "Text",
        "name": "Education",
        "value": "",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Education"
            }
        ]
    },
    {
        "customFieldId": 15,
        "type": "DropDown",
        "name": "CakeorPie",
        "value": "Cake",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Cake or Pie?"
            }
        ]
    },
    {
        "customFieldId": 16,
        "type": "RichText",
        "name": "Pets",
        "value": "",
        "editable": true,
        "label": [
            {
                "key": "en",
                "value": "Pets"
            }
        ]
    }
]