Get all Occupations

GET /occupation/list

List all the occupations. There are 2 structures for occupations depending on their configuration in the infoodle system. 1) A single level list of occupations. See response 200 2) A 2 level list with categories, and then occupations within the categories. See response 201

Responses

  • 200

    OK For single level list (option 1)

    Hide response attributes Show response attributes object
    • id integer

      The ID to be used when updating other end points

    • value string

      The name for the occupation

  • 201

    OK for two level list of occupations (option 2). The response code will still be 200, just to make the documentation clearer, hopefully.

    Hide response attributes Show response attributes array[object]
    • items array[object]
      Hide items attributes Show items attributes
      • id integer

        The ID to be used when updating other end points

      • value string

        The name for the occupation

    • category string

      A category of occupations

GET /occupation/list
curl \
 -X GET https://YOURSITE.infoodle.com/apiv2/occupation/list \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": 44,
  "value": "Teacher"
}
Response examples (201)
[
  {
    "category": "Teachers",
    "items": [
      {
        "id": 44,
        "value": "Maths Teacher"
      }
    ]
  }
]