Certifications are used to record employee and contractor accreditations in OnLocation. Use the API to retrieve the certifications created for your organization, add or update, or delete a certification, and see the number of people who hold the certification.
Learn more about certifications in the OnLocation Help Center.
Returns a list of all certifications.
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 certifications
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ 'https://api.whosonlocation.com/v1/certification?q=string'
[- {
- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "created_by": 35,
- "name": "Certification Name",
- "category": "internal",
- "certification_type_id": 81,
- "description": "This describes the certification",
- "holders": 2,
- "status": "Active",
- "staff_audience": "locations",
- "contractor_audience": "groups",
- "staff_departments": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_groups": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
]
}
]
Creates a new certification that can be assigned to employees or contractors.
Certification created
Access denied to this resource
Internal server error
{- "name": "Updated Request",
- "category": "external",
- "certification_type_id": 81,
- "description": "This describes the certification"
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "created_by": 35,
- "name": "Certification Name",
- "category": "internal",
- "certification_type_id": 81,
- "description": "This describes the certification",
- "holders": 2,
- "status": "Active",
- "staff_audience": "locations",
- "contractor_audience": "groups",
- "staff_departments": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_groups": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
]
}
Retrieves a single certification, filtering with the provided ID.
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/certification/:id
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "created_by": 35,
- "name": "Certification Name",
- "category": "internal",
- "certification_type_id": 81,
- "description": "This describes the certification",
- "holders": 2,
- "status": "Active",
- "staff_audience": "locations",
- "contractor_audience": "groups",
- "staff_departments": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_groups": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
]
}
Updates the details of a certification.
Updated resource
Access denied to this resource
Internal server error
{- "name": "Updated Request",
- "category": "external",
- "certification_type_id": 81,
- "description": "This describes the certification"
}
{- "id": 1206,
- "created": "2021-11-26T14:35:28+13:00",
- "modified": "2021-12-31T14:35:28+13:00",
- "created_by": 35,
- "name": "Certification Name",
- "category": "internal",
- "certification_type_id": 81,
- "description": "This describes the certification",
- "holders": 2,
- "status": "Active",
- "staff_audience": "locations",
- "contractor_audience": "groups",
- "staff_departments": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "staff_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_groups": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_locations": [
- {
- "id": 556,
- "name": "Example Name"
}
], - "sp_roles": [
- {
- "id": 556,
- "name": "Example Name"
}
]
}
Deletes a certification using the provided ID.
Certification deleted
Access denied to resource
Resource not found
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/certification/:id