REST API For Oracle Fusion Cloud HCM
REST API For Oracle Fusion Cloud HCM
1. Query (GET) the employee by using a query parameter such as assignmentNumber and BusinessUnitName on the
workers resource.
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 1/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
Example URL
POST
/hcmRestApi/resources/11.13.18.05/areasOfResponsibility
Example Request
Content-Type: application/json
"ResponsibilityName": "Vision_J-O",
"ResponsibilityType": "HR_REP",
"ActiveStatus": "A",
"StartDate": "2020-06-15",
"AssignmentNumber": "E955160008184479",
"LastNameStart": "J",
"LastNameEnd": "O"
Example Response
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 2/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"ResponsibilityId": 300100211954722,
"ResponsibilityName": "Vision_J-O",
"ResponsibilityType": "HR_REP",
"PersonId": 300100075614630,
"PersonNumber": "955160008184479",
"AssignmentId": 300100075614642,
"AssignmentNumber": "E955160008184479",
"TemplateId": null,
"TemplateCode": null,
"TemplateName": null,
"ActiveStatus": "A",
"StartDate": "2020-06-15",
"EndDate": null,
"WorkContactsFlag": true,
"BusinessUnitId": 300100024264603,
"JobId": null,
"LegalEntityId": null,
"LocationId": null,
"DepartmentId": null,
"PositionId": null,
"HierarchyType": null,
"DepartmentTreeCode": null,
"OrganizationTreeCode": null,
"PositionTreeCode": null,
"TopManagerId": null,
"links": [
...]
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 3/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
1. Query (GET) the assignment information using the AssignmentNumber query parameter on the workers resource.
3. Perform a POST operation on the areasOfResponsibility resource by providing the attributes AssignmentNumber
and TemplateCode in the request body.
Example URL
POST
/hcmRestApi/resources/11.13.18.05/areasOfResponsibility
Example Request
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 4/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
Content-Type: application/vnd.oracle.adf.resourceitem+json
prefer: return=representation
REST-Framework-Version: 4
"TemplateCode": "LBGTemplate",
"StartDate":"2020-06-16",
"AssignmentNumber": "E955160008184479"
Example Response
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 5/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"ResponsibilityId": 300100211987494,
"ResponsibilityType": "BEN_REP",
"ResponsibilityTypeMeaning": null,
"PersonId": 300100075614630,
"PersonNumber": "955160008184479",
"AssignmentId": 300100075614642,
"AssignmentNumber": "E955160008184479",
"TemplateId": 300100211962785,
"TemplateCode": "LBGTemplate",
"ActiveStatus": "A",
"StartDate": "2020-06-16",
"EndDate": null,
"WorkContactsFlag": true,
"AssignmentCategory": null,
"AssignmentCategoryMeaning": null,
"BargainingUnitCode": null,
"BargainingUnit": null,
"BenefitGroupId": 100000018019267,
"BusinessUnitId": null,
"BusinessUnitName": null,
"CountryCode": null,
"Country": null,
"GradeId": null,
"GradeCode": null,
"GradeSetCode": null,
"GradeName": null
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 6/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
GradeName : null,
"JobFamilyId": null,
"JobFamilyCode": null,
"JobFamilyName": null,
"JobId": null,
"JobCode": null,
"JobSetCode": null,
"JobName": null,
"JobFunctionCode": null,
"JobFunctionMeaning": null,
"LastNameStart": null,
"LastNameEnd": null,
"LegalEntityId": null,
"LegalEmployerName": null,
"LegislativeDataGroupId": null,
"LegislativeDataGroupName": null,
"LocationId": null,
"LocationCode": null,
"LocationSetCode": null,
"LocationName": null,
"DepartmentId": null,
"DepartmentName": null,
"PayrollId": null,
"PayrollName": null,
"PayrollStatUnitId": null,
"PayrollStatutoryUnitName": null,
"PositionId": null,
"PositionCode": null,
"PositionName": null,
"RecruitingTypeCode": null,
"RecruitingTypeMeaning": null,
"TaxReportingUnitId": null,
"TaxReportingUnitName": null,
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 7/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"HierarchyType": null,
"HierarchyTypeMeaning": null,
"DepartmentTreeCode": null,
"DepartmentTreeName": null,
"DepartmentTreeVersionId": null,
"DepartmentTreeVersionName": null,
"TopDepartmentId": null,
"TopDepartmentName": null,
"OrganizationTreeCode": null,
"OrganizationTreeName": null,
"OrganizationTreeVersionId": null,
"OrganizationTreeVersionName": null,
"TopOrganizationId": null,
"TopOrganizationName": null,
"PositionTreeCode": null,
"PositionTreeName": null,
"PositionTreeVersionId": null,
"PositionTreeVersionName": null,
"TopPositionId": null,
"TopPositionName": null,
"TopManagerId": null,
"TopManagerNumber": null,
"TopManagerName": null,
"IncludeTopHierNodeFlag": null,
"HierarchyLevels": null,
"RecruitingLocHierarchyId": null,
"RecruitingLocHierarchyName": null,
"RecruitingOrgHierarchyId": null,
"RecruitingOrgHierarchyName": null,
"RecruitingOrgTreeCode": null,
"RecruitingOrgTreeVer": null,
"CreatedBy": "GENERIC_USER",
"LastUpdatedBy": "GENERIC_USER",
"LastUpdateDate": "2020-06-15T20:01:36.735+00:00",
"links": [
...]
1. Perform a GET operation on the areasOfResponsibility resource by using the query parameter TemplateName.
Example URL
GET
hcmRestApi/resources/11.13.18.05/areasOfResponsibility?q=TemplateName='Launch Benefits Gr
oup Template'&fields=-BusinessUnitId,-JobId,-LegalEntityId,-LocationId,-DepartmentId,-Pos
itionId,-HierarchyType,-DepartmentTreeCode,-OrganizationTreeCode,-PositionTreeCode,-TopMa
nagerId,%2BBenefitGroupId,%2BBenefitGroupName
Example Response
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 9/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"items": [
{
"ResponsibilityId": 300100200403824,
"ResponsibilityType": "BEN_REP",
"PersonId": 300100075614630,
"PersonNumber": "955160008184479",
"AssignmentId": 300100075614642,
"AssignmentNumber": "E955160008184479",
"TemplateId": 300100200403822,
"TemplateCode": "LBGTemplate",
"ActiveStatus": "A",
"StartDate": "2020-07-10",
"EndDate": null,
"WorkContactsFlag": true,
"BenefitGroupId": 100000018019267,
"links": [...]
},
{
"ResponsibilityId": 300100200403825,
"ResponsibilityType": "BEN_REP",
"PersonId": 15828,
"PersonNumber": "15828",
"AssignmentId": 15756,
"AssignmentNumber": "11"
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 10/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
AssignmentNumber : 11 ,
"AssignmentName": "11",
"TemplateId": 300100200403822,
"TemplateCode": "LBGTemplate",
"ActiveStatus": "A",
"StartDate": "2020-07-10",
"EndDate": null,
"WorkContactsFlag": true,
"BenefitGroupId": 100000018019267,
"links": [...]
},
{
"ResponsibilityId": 300100200403826,
"ResponsibilityType": "BEN_REP",
"PersonId": 15839,
"PersonNumber": "15839",
"AssignmentId": 15767,
"AssignmentNumber": "12",
"AssignmentName": "12",
"TemplateId": 300100200403822,
"TemplateCode": "LBGTemplate",
"ActiveStatus": "A",
"StartDate": "2020-07-10",
"EndDate": null,
"WorkContactsFlag": true,
"BenefitGroupId": 100000018019267,
"links": [...]
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 11/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
},
{
"ResponsibilityId": 300100200403827,
"ResponsibilityType": "BEN_REP",
"PersonId": 11571,
"PersonNumber": "11571",
"AssignmentId": 10950,
"AssignmentNumber": "5",
"AssignmentName": "5",
"TemplateId": 300100200403822,
"TemplateCode": "LBGTemplate",
"ActiveStatus": "A",
"StartDate": "2020-07-10",
"EndDate": null,
"WorkContactsFlag": true,
"BenefitGroupId": 100000018019267,
"links": [
...]
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 12/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
1. Query the assigned area of responsibility by performing a GET operation on the areasOfResponsibility resource,
using the query parameters AssignmentNumber and ResponsibilityName.
2. Perform a POST operation on the areasOfResponsibility resource, providing the AssignmentId in the request
body.
3. Verify the details returned in the response.
Example URL
POST
/hcmRestApi/resources/11.13.18.05/areasOfResponsibility/300100200403826/action/reassign
Example Request
REST-Framework-Version: 4
Content-Type:application/vnd.oracle.adf.action+json
"AssignmentId":"300100016652096"
Example Response
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 13/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"result": "true"
1. Query (GET) the worker's assignment information by using the query parameter assignmentNumber or PersonId on
the workers resource.
2. Perform a GET operation on the areasOfResponsibility resource by using the assignmentNumber or PersonId
and retrieve the worker's assigned area of responsibility. For example,
hcmRestApi/resources/11.13.18.05/areasOfResponsibility?q=PersonId='100001' or
hcmRestApi/resources/11.13.18.05/areasOfResponsibility?q=AssignmentNumber='100002'
3. Perform a PATCH operation on the URL for the worker's areasOfResponsibility item.
Example URL
PATCH
/hcmRestApi/resources/11.13.18.05/areasOfResponsibility/300100203490134
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 14/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
Example Request
REST-Framework-Version: 4
Content-Type: application/vnd.oracle.adf.resourceitem+json
Prefer: return=representation
"LocationCode": "US_ATL"
Example Response
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 15/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"ResponsibilityId": 300100203490134,
"ResponsibilityType": "HR_REP",
"PersonId": 300100033210227,
"PersonNumber": "955160008177032",
"AssignmentId": 300100033210245,
"AssignmentNumber": "E955160008177032",
"AssignmentName": "E955160008177032",
"TemplateId": null,
"TemplateCode": null,
"TemplateName": null,
"ActiveStatus": "A",
"StartDate": "2020-07-01",
"EndDate": null,
"WorkContactsFlag": true,
"AssignmentCategory": null,
"AssignmentCategoryMeaning": null,
"BargainingUnitCode": null,
"BargainingUnit": null,
"BenefitGroupId": null,
"BenefitGroupName": null,
"BusinessUnitId": null,
"BusinessUnitName": null,
"CountryCode": "US",
"GradeId": null,
"GradeCode": null,
"GradeSetCode": null,
"GradeName": null
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 16/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
GradeName : null,
"JobFamilyId": null,
"JobFamilyCode": null,
"JobFamilyName": null,
"JobId": null,
"JobCode": null,
"JobSetCode": null,
"JobName": null,
"JobFunctionCode": null,
"JobFunctionMeaning": null,
"LastNameStart": null,
"LastNameEnd": null,
"LegalEntityId": null,
"LegalEmployerName": null,
"LegislativeDataGroupId": null,
"LegislativeDataGroupName": null,
"LocationId": 300100082241243,
"LocationCode": "US_ATL",
"LocationSetCode": "COMMON",
"LocationName": "Atlanta",
"DepartmentId": null,
"DepartmentName": null,
"PayrollId": null,
"PayrollName": null,
"PayrollStatUnitId": null,
"PayrollStatutoryUnitName": null,
"PositionId": null,
"PositionCode": null,
"PositionName": null,
"RecruitingTypeCode": null,
"RecruitingTypeMeaning": null,
"TaxReportingUnitId": null,
"TaxReportingUnitName": null,
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 17/19
20/7/22, 17:20 REST API for Oracle Fusion Cloud HCM
"HierarchyType": null,
"HierarchyTypeMeaning": null,
"DepartmentTreeCode": null,
"DepartmentTreeName": null,
"DepartmentTreeVersionId": null,
"DepartmentTreeVersionName": null,
"TopDepartmentId": null,
"TopDepartmentName": null,
"OrganizationTreeCode": null,
"OrganizationTreeName": null,
"OrganizationTreeVersionId": null,
"OrganizationTreeVersionName": null,
"TopOrganizationId": null,
"TopOrganizationName": null,
"PositionTreeCode": null,
"PositionTreeName": null,
"PositionTreeVersionId": null,
"PositionTreeVersionName": null,
"TopPositionId": null,
"TopPositionName": null,
"TopManagerId": null,
"TopManagerNumber": null,
"TopManagerName": null,
"IncludeTopHierNodeFlag": false,
"HierarchyLevels": null,
"RecruitingLocHierarchyId": null,
"RecruitingLocHierarchyName": null,
"RecruitingOrgHierarchyId": null,
"RecruitingOrgHierarchyName": null,
"RecruitingOrgTreeCode": null,
"RecruitingOrgTreeVer": null,
"CreatedBy": "HCM_USER10",
"LastUpdatedBy": "HCM_INTEGRATION_SPEC",
"LastUpdateDate": "2020-07-13T14:11:42+00:00",
"links": [
...]
© Oracle
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/Manage_Areas_of_Responsibility.html 19/19