Retrieve PY Employee Work Statuses By Code
    • 25 Sep 2024
    • 1 Minute to read
    • Dark
      Light

    Retrieve PY Employee Work Statuses By Code

    • Dark
      Light

    Article summary

    Get
    /hcm-rest-api/rest/1/pyempsubstatus

    Query Standards

    Finder

    Following row finders are available for data filtering and optimizing request performance.

    • Find By Date
    • By Status Code

    Find By Date

    Recommended finder parameters. Refer to Query Parameters for example.

    ParameterDescriptionSample
    auditDateCreate or Update Date Time Filter2015-01-01

    By Status Code

    This is an optional finder for querying a specific Employee Work Status by Status Code.

    ParameterDescriptionSample
    /EmpsCodeThe attribute is the Unique row ID/hcm-rest-api/rest/1/pyempsubstatus/W
    Security
    HTTP
    Type basic

    Basic authentication

    Query parameters
    finder
    string
    ExamplefindByDate; auditDate=2015-01-01
    limit
    integer
    Example500
    offset
    integer
    Example0
    totalResults
    boolean
    Exampletrue
    orderBy
    string
    ExampleEmpsCode
    Responses
    200

    OK

    Headers
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourcecollection+json
    {
      "items": [
        {
          "EmpsCode": "W",
          "EmpsDescription": "Working",
          "EmpsSeqNum": 10,
          "EmpsActiveStatus": "Y",
          "EmpsSysDefined": "Y",
          "EmpsIuCreateDate": "2022-09-05T01:36:12Z",
          "EmpsIuCreateUser": "DA",
          "EmpsIuUpdateDate": null,
          "EmpsIuUpdateUser": null,
          "links": [
            {
              "rel": "self",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/W",
              "name": "pyempsubstatus",
              "kind": "item"
            },
            {
              "rel": "canonical",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/W",
              "name": "pyempsubstatus",
              "kind": "item"
            }
          ]
        },
        {
          "EmpsCode": "V",
          "EmpsDescription": "On Leave",
          "EmpsSeqNum": 20,
          "EmpsActiveStatus": "Y",
          "EmpsSysDefined": "Y",
          "EmpsIuCreateDate": "2022-09-05T01:36:12Z",
          "EmpsIuCreateUser": "DA",
          "EmpsIuUpdateDate": null,
          "EmpsIuUpdateUser": null,
          "links": [
            {
              "rel": "self",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/V",
              "name": "pyempsubstatus",
              "kind": "item"
            },
            {
              "rel": "canonical",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/V",
              "name": "pyempsubstatus",
              "kind": "item"
            }
          ]
        },
        {
          "EmpsCode": "L",
          "EmpsDescription": "Temporary Layoff",
          "EmpsSeqNum": 30,
          "EmpsActiveStatus": "Y",
          "EmpsSysDefined": "Y",
          "EmpsIuCreateDate": "2022-09-05T01:36:12Z",
          "EmpsIuCreateUser": "DA",
          "EmpsIuUpdateDate": null,
          "EmpsIuUpdateUser": null,
          "links": [
            {
              "rel": "self",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/L",
              "name": "pyempsubstatus",
              "kind": "item"
            },
            {
              "rel": "canonical",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/L",
              "name": "pyempsubstatus",
              "kind": "item"
            }
          ]
        },
        {
          "EmpsCode": "F",
          "EmpsDescription": "FMLA",
          "EmpsSeqNum": 40,
          "EmpsActiveStatus": "Y",
          "EmpsSysDefined": "Y",
          "EmpsIuCreateDate": "2022-09-05T01:36:12Z",
          "EmpsIuCreateUser": "DA",
          "EmpsIuUpdateDate": null,
          "EmpsIuUpdateUser": null,
          "links": [
            {
              "rel": "self",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/F",
              "name": "pyempsubstatus",
              "kind": "item"
            },
            {
              "rel": "canonical",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/F",
              "name": "pyempsubstatus",
              "kind": "item"
            }
          ]
        },
        {
          "EmpsCode": "C",
          "EmpsDescription": "W/C",
          "EmpsSeqNum": 50,
          "EmpsActiveStatus": "Y",
          "EmpsSysDefined": "Y",
          "EmpsIuCreateDate": "2022-09-05T01:36:12Z",
          "EmpsIuCreateUser": "DA",
          "EmpsIuUpdateDate": null,
          "EmpsIuUpdateUser": null,
          "links": [
            {
              "rel": "self",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/C",
              "name": "pyempsubstatus",
              "kind": "item"
            },
            {
              "rel": "canonical",
              "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus/C",
              "name": "pyempsubstatus",
              "kind": "item"
            }
          ]
        }
      ],
      "count": 5,
      "hasMore": true,
      "limit": 5,
      "offset": 0,
      "links": [
        {
          "rel": "self",
          "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempsubstatus",
          "name": "pyempsubstatus",
          "kind": "collection"
        }
      ]
    }
    object