Termination Reasons

Supported Formats: json

GET /hr_api/v1/termination_reasons

Returns a list of active Termination Reasons

Params

Property Required Details Location

scope

Optionally override the default scope. Will be ignored if invalid.

Must be one of: active, all.

URL

page

Index returns 100 records per request. Defaults to 1.

Must be a Integer

URL

Examples

GET /hr_api/v1/termination_reasons
200
{
  "termination_reasons": [
    {
      "uuid": "5e4405f6-532c-46be-a72a-8b372803525b",
      "category_description": "test reason for leaving keyword"
    },
    {
      "uuid": "98267ea0-7026-4044-8804-7e6eb914bda8",
      "category_description": "test reason for leaving keyword 2"
    },
    {
      "uuid": "a8ff68c1-9ce5-42b9-9587-db719cb3e982",
      "category_description": "0.8.5 ReasonForLeaving"
    }
  ]
}

GET /hr_api/v1/termination_reasons/:uuid

Return details of an existing Termination Reason

Params

Property Required Details Location

uuid

Must be a String

URL

Examples

GET /hr_api/v1/termination_reasons/:uuid
200
{
  "termination_reason": {
    "keyword_type": "ReasonForLeaving",
    "keyword_id": null,
    "uuid": "5e4405f6-532c-46be-a72a-8b372803525b",
    "category_code": "reaon_for_leaving",
    "comments": "<p>comment for test reason for leaving</p>",
    "sort": 100,
    "category_status": "active",
    "category_description": "test reason for leaving keyword"
  }
}

Params

Property Required Details Location

id

Must be a Integer

JSON

Params

Property Required Details Location

uuid

Must be a String

URL

id

Must be a Integer

JSON

Params

Property Required Details Location

uuid

Must be a String

URL