Each certification added to an employee or contractor profile can have a document attached. Use the API to return a list of certification documents, and update or delete a certification document.
Learn more about certification documents in the OnLocation Help Center.
Retrieves a list of documents for a specified certification holder and specified certification
List of certification holder documents
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/certification/:id/holder/:hid/document
[- {
- "id": 70,
- "modified": "2021-11-29T08:12:24+13:00",
- "name": "file-example",
- "type": "pdf",
- "size": 469513,
}
]
Adds a new certification holder document.
Document added
Access denied to this resource
Internal server error
curl -i -X POST \ https://api.whosonlocation.com/v1/certification/:id/holder/:hid/document \ -H 'Content-Type: multipart/form-data' \ -F file=string
Retrieves a certification holder document, filtering with the provided ID
The specified document to be retrieved
Access denied to resource.
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/certification/:id/holder/:hid/document/:did
{- "id": 70,
- "modified": "2021-11-29T08:12:24+13:00",
- "name": "file-example",
- "type": "pdf",
- "size": 469513,
}
Deletes the specified certification holder document.
Resource Deleted
Access denied to resource
Resource not found
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/certification/:id/holder/:hid/document/:did