Certificate
Represents a certificate that can be linked to various resources such as people, materials, or equipment. Includes key details like issue date, expiration date, result/outcome, and additional notes. Used to track compliance and qualification status across the organization.
- Version
- 2.0.0
- OpenAPI version
- 3.1.0
Operations
Section titled “Operations” POST /v2/certificate/index
Returns a paginated and filterable list of certificates. Use POST to allow complex filters via JSON payload.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching certificates
object
object
{ "name": "Certificate of Completion", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "warning": 0, "validity_unit": "YEAR", "validity": 1}
Example
{ "filter": { "name": "Certificate of Completion", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "warning": 0, "validity_unit": "YEAR", "validity": 1 }, "per-page": 20, "page": 1, "sort": "name"}
Responses
Section titled “ Responses ”List of certificates
object
object
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "date_release": "2022-01-01", "date_expire": "2023-01-01", "name": "Certificate of Completion", "note": "This certificate is valid for one year.", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "data": { "additional_info": "This certificate was issued by the training department." }, "warning": 0, "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "date_release": "2022-01-01", "date_expire": "2023-01-01", "name": "Certificate of Completion", "note": "This certificate is valid for one year.", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "data": { "additional_info": "This certificate was issued by the training department." }, "warning": 0, "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/certificate/view/{id}
Retrieve a certificate by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the certificate to retrieve
Responses
Section titled “ Responses ”Certificate found
object
object
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "date_release": "2022-01-01", "date_expire": "2023-01-01", "name": "Certificate of Completion", "note": "This certificate is valid for one year.", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "data": { "additional_info": "This certificate was issued by the training department." }, "warning": 0, "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Certificate not found
create
Section titled “create” POST /v2/certificate/create
Create a new certificate by providing the required details.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Certificate object to be created
object
object
Example
{ "date_release": "2023-01-01", "name": "Certificate of Safety", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Responses
Section titled “ Responses ”Certificate created successfully
object
object
Example
{ "certificate_id": "223e4567-e89b-12d3-a456-426655440000", "date_release": "2023-01-01", "name": "Certificate of Safety", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
update
Section titled “update” PUT /v2/certificate/update/{id}
Update an existing certificate by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the certificate to update
Request Body required
Section titled “Request Body required ”Certificate object with updated data
object
object
Example
{ "name": "Updated Certificate", "validity": 2}
Responses
Section titled “ Responses ”Certificate updated successfully
object
object
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Updated Certificate", "validity": 2}
Certificate not found
delete
Section titled “delete” DELETE /v2/certificate/delete/{id}
Delete a certificate by its unique ID. If force=true, all related entities will also be deleted.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the certificate to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Certificate deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
Webhooks
Section titled “Webhooks”CERTIFICATE::CREATE
Section titled “CERTIFICATE::CREATE”This webhook is triggered when a new certificate is created in the system.
Request Body
Section titled “Request Body ”Information about the newly created certificate
object
object
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "date_release": "2022-01-01", "date_expire": "2023-01-01", "name": "Certificate of Completion", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "warning": 0, "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE::UPDATE
Section titled “CERTIFICATE::UPDATE”This webhook is triggered when a certificate is updated in the system. It provides the unique ID of the certificate and an object containing the old and new values for each updated field.
Request Body
Section titled “Request Body ”Information about the updated certificate, with old and new values for the changed properties.
object
The unique ID of the certificate.
An object where each key is the name of an updated field, and its value contains the old and new values.
object
Provides the old and new value for a property. The type of the values depends on the specific property.
object
Example
{ "entity_id": "d9a77e06-9b47-4829-b28a-c7561deac771", "updated_fields": { "name": { "old": "Old Certificate Name", "new": "New Certificate Name" }, "date_expire": { "old": "2023-01-01", "new": "2024-01-01" } }}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE::DELETE
Section titled “CERTIFICATE::DELETE”This webhook is triggered when a certificate is deleted from the system. It provides the deleted certificate.
Request Body
Section titled “Request Body ”Information about the deleted certificate
object
object
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "date_release": "2022-01-01", "date_expire": "2023-01-01", "name": "Certificate of Completion", "action_type": "TRAINING", "resource_id": "123e4567-e89b-12d3-a456-426655440000", "warning": 0, "tenant_id": "123e4567-e89b-12d3-a456-426655440000", "validity_unit": "YEAR", "validity": 1}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event