An induction holder is someone who has completed an induction course. Induction holder records include the learner's name, email, status odf the course, the number of attempts, when it's due to be renewed. Use the API to retrieve who has completed each induction course, or create, update or delete an induction holder record.
Learn more about induction holders in the OnLocation Help Center.
Retrieves a list of all employees and contractors that hold the specified induction.
A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.
List of induction holder details
Access denied to resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/induction/:id/holder?q=string'
[- {
- "id": 6856,
- "completed": "2021-11-26T00:00:00+13:00",
- "staff_id": 35,
- "sp_member_id": 642,
- "learner_name": "Robert Jordan",
- "learner_email": "example.email@whosonlocation.com",
- "learner_title": "Mr",
- "learner_from": "OnLocation",
- "status": "passed",
- "attempts": 1,
- "attempts_left": 0,
- "renew": "2022-11-26"
}
]
Creates an induction holder association. If an association already exists, the existing record will be updated.
Induction created
Access denied to this resource
Internal server error
{- "staff_id": 55,
- "sp_member_id": 3001,
- "completed": "2021-11-25T22:01:09.385Z"
}
{- "id": 6856,
- "completed": "2021-11-26T00:00:00+13:00",
- "staff_id": 35,
- "sp_member_id": 642,
- "learner_name": "Robert Jordan",
- "learner_email": "example.email@whosonlocation.com",
- "learner_title": "Mr",
- "learner_from": "OnLocation",
- "status": "passed",
- "attempts": 1,
- "attempts_left": 0,
- "renew": "2022-11-26"
}
Retrieves a single induction holder record, filtering with the provided ID.
Induction holder details
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/induction/:id/holder/:hid
{- "id": 6856,
- "completed": "2021-11-26T00:00:00+13:00",
- "staff_id": 35,
- "sp_member_id": 642,
- "learner_name": "Robert Jordan",
- "learner_email": "example.email@whosonlocation.com",
- "learner_title": "Mr",
- "learner_from": "OnLocation",
- "status": "passed",
- "attempts": 1,
- "attempts_left": 0,
- "renew": "2022-11-26"
}
Updates an induction holder association
Information used to create Induction holder association:
Updated induction holder
Access denied to this resource
Internal server error
{- "completed": "2021-11-25T22:01:09.385Z",
- "staff_id": "123",
- "sp_member_id": "123"
}
{- "id": 6856,
- "completed": "2021-11-26T00:00:00+13:00",
- "staff_id": 35,
- "sp_member_id": 642,
- "learner_name": "Robert Jordan",
- "learner_email": "example.email@whosonlocation.com",
- "learner_title": "Mr",
- "learner_from": "OnLocation",
- "status": "passed",
- "attempts": 1,
- "attempts_left": 0,
- "renew": "2022-11-26"
}
Deletes the specified induction holder association.
Induction holder association deleted
Access denied to resource
Resource not found
curl -i -X DELETE \ https://api.whosonlocation.com/v1/induction/:id/holder/:hid