Retrieve Time Attributes

Retrieve Time Records Attributes

You can use the REST API on the timeAttributes resource to get all seeded time attributes, such as payroll time type and project, which can be imported with time records.

Example URL

The following is the format of the resource URL.

GET

/hcmRestApi/resources/11.13.18.05/timeAttributes?finder=filterByAttrContext;contextCode=ORA_HWM_TIME_RECORDS_REST

Example Response

The following is an example of the response body in JSON format.

{
    "items": [
        {
            "contextCode": "ORA_HWM_TIME_RECORDS_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026407,
            "displayName": "Absence Type Reason",
            "tmAtrbFldId": 300100028310498,
            "attributeName": "AbsenceReason",
            "description": "Reason for recording the absence as defined in Oracle Cloud Absence Management.",
            "links": [...]
        },
        {
            "contextCode": "ORA_HWM_TIME_RECORDS_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026463,
            "displayName": "Project Expenditure Type Name",
            "tmAtrbFldId": 300100035873109,
            "attributeName": "PJC_EXPENDITURE_TYPE_NAME",
            "description": "Name of the expenditure type of the project.",
            "links": [...]
        },
        {
            "contextCode": "ORA_HWM_TIME_RECORDS_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026405,
            "displayName": "Absence Management Type",
            "tmAtrbFldId": 300100028326154,
            "attributeName": "AbsenceType",
            "description": "Type of the absence such as sickness or holiday.",
            "links": [...]
}

Retrieve Time Events Attributes

You can use the REST API on the timeAttributes resource to get all seeded time attributes, such as payroll time type and project, which can be imported with time events.

Example URL

The following is the format of the resource URL.

GET

/hcmRestApi/resources/11.13.18.05/timeAttributes?finder=filterByAttrContext;contextCode=ORA_HWM_TIME_EVENTS_REST

Example Response

The following is an example of the response body in JSON format.

{
    "items": [
        {
            "contextCode": "ORA_HWM_TIME_EVENTS_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026462,
            "displayName": "Project Expenditure Type Name",
            "tmAtrbFldId": 300100035873109,
            "attributeName": "PJC_EXPENDITURE_TYPE_NAME",
            "description": "Name of the expenditure type of the project.",
            "links": [...]
        },
        {
            "contextCode": "ORA_HWM_TIME_EVENTS_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026459,
            "displayName": "Project Expenditure Type",
            "tmAtrbFldId": 300100028326156,
            "attributeName": "PJC_EXPENDITURE_TYPE_ID",
            "description": "Unique identifier of the expenditure type of the project.",
            "links": [...]
        }

Retrieve Schedules Attributes

You can use the REST API on the timeAttributes resource to get all seeded time attributes, such as payroll time type and project, which can be imported with schedules.

Example URL

The following is the format of the resource URL.

GET

/hcmRestApi/resources/11.13.18.05/timeAttributes?finder=filterByAttrContext;contextCode=ORA_HTS_SCHEDULES_RES

Example Response

The following is an example of the response body in JSON format.
{
    "items": [
        {
            "contextCode": "ORA_HTS_SCHEDULES_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026461,
            "displayName": "Project Expenditure Type Name",
            "tmAtrbFldId": 300100035873109,
            "attributeName": "PJC_EXPENDITURE_TYPE_NAME",
            "description": "Name of the expenditure type of the project.",
            "links": [...]
        },
        {
            "contextCode": "ORA_HTS_SCHEDULES_REST",
            "name": null,
            "tmAtrbFldUsageId": 300100111026458,
            "displayName": "Project Expenditure Type",
            "tmAtrbFldId": 300100028326156,
            "attributeName": "PJC_EXPENDITURE_TYPE_ID",
            "description": "Unique identifier of the expenditure type of the project.",
            "links": [...]
        },