Skip to content

getProfessions ​

Retrieves a list of professions.

Version Note

Current version = 3 — removed field en_US and replaced with the locale parameter.

Request ​

http
GET /rest/refdata/professions

Query Parameters ​

ParameterTypeRequiredDescription
professionIdintegerNoFilter by a single profession ID
professionNamestringNoFilter by profession name
localestringNoLocale for translated names

Examples ​

http
GET /rest/refdata/professions
GET /rest/refdata/professions?professionId=1
GET /rest/refdata/professions?professionName=Doctor

Response ​

200 OK ​

json
[
  {
    "professionId": 1,
    "professionName": "Doctor",
    "professionOrder": 1
  },
  {
    "professionId": 2,
    "professionName": "Nurse",
    "professionOrder": 2
  }
]
FieldTypeDescription
professionIdintegerPrimary key of the profession
professionNamestring(255)Name of the profession
professionOrderintegerDisplay order

Errors ​

ExceptionCause
WSInvalidParameterExceptionInvalid parameter value
WSRefDataServiceExceptionService error while fetching professions

Version ​

http
GET /rest/refdata/professions/version
json
{ "version": 3 }