Rest API - Allocate a Journey
Summary:
Content (required):
We're trying to allocate Journeys to employees using Rest API and have found the following API scripts.
In this example, since both seem to achieve the same objective of allocating the Enterprise Onboarding Journey/Checklist to the employee, is there any other difference between them ? Script 1 seems more convenient as we just need to pass the Person Number. Is there any reason why Script 2 would be used ?
Script 1 -
{
"checklistName": "New Hire Journey",
"checklistCategory": "ORA_ONB_ENT_ONBOARDING",
"personNumber": "123456",
"allocationDate": "2023-09-12"
}
Script 2 -
{
"TemplateId": 300000123456789,
"TemplateName": "New Hire Journey",
"TemplateCategory": "ORA_ONB_ENT_ONBOARDING",
"TemplateCountry": null,
"PersonId": 300000987654321,
"AssignmentId": 300000321654987,
"AssignmentNumber": "E123456",