Create an offboarding confirmation intent
Create the OFFBOARDING_CONFIRMATION task of an offboarding: the leaver information to confirm (last day, contact email after they leave, phone) before the other steps open. A field you leave out is read from the offboarding and the employee. Returns the intent id, its taskId and the ticketId holding it. The task cannot be marked done by hand: updateTaskStatus refuses it with TaskLockedByTypeError, and it completes when the intent executes. The offboarding opens this task itself (createOffboarding); its intentId is on the task (getTicket). Create one only for a step the offboarding did not open. createTicket and createTask cannot make a typed task. Refused with OFFBOARDING_NOT_FOUND, PARENT_TICKET_NOT_FOUND, PARENT_TICKET_IS_TYPED or PARENT_TICKET_IS_A_TASK (pass the untyped ticket instead), CONTACT_EMAIL_NOT_ON_EMPLOYEE (the contact email must be one of the leaver emails).
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Body
The offboarding this step belongs to, from getOffboardings
^[a-f\d]{24}$The leaver's last day. Defaults to the offboarding's termination date.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$An address of the leaver to reach them after they leave; must be one of their emails. Null clears it.
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$The leaver's phone. Defaults to the one on the employee.
1The ticket to hold the task. Defaults to the offboarding ticket; never a typed task.
^[a-f\d]{24}$Response
Intent id, to pass to its update and execute tools
The typed task that tracks this step
The ticket holding that task, usually the offboarding ticket. Null if it could not be read back.
When the intent executed; null until then
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$