Certificate
Questi contenuti non sono ancora disponibili nella tua lingua.
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
Sezione intitolata “Operations” POST /v2/certificate/index
Returns a paginated and filterable list of certificates. Use POST to allow complex filters via JSON payload.
Authorizations
Sezione intitolata “Authorizations ”Request Body
Sezione intitolata “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
Sezione intitolata “ 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
Sezione intitolata “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
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the certificate to retrieve
Responses
Sezione intitolata “ 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
POST /v2/certificate/create
Create a new certificate by providing the required details.
Authorizations
Sezione intitolata “Authorizations ”Request Body required
Sezione intitolata “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
Sezione intitolata “ 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}
PUT /v2/certificate/update/{id}
Update an existing certificate by its unique ID.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the certificate to update
Request Body required
Sezione intitolata “Request Body required ”Certificate object with updated data
object
object
Example
{ "name": "Updated Certificate", "validity": 2}
Responses
Sezione intitolata “ Responses ”Certificate updated successfully
object
object
Example
{ "certificate_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Updated Certificate", "validity": 2}
Certificate not found
DELETE /v2/certificate/delete/{id}
Delete a certificate by its unique ID. If force=true, all related entities will also be deleted.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the certificate to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ 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
Sezione intitolata “Webhooks”CERTIFICATE::CREATE
Sezione intitolata “CERTIFICATE::CREATE”This webhook is triggered when a new certificate is created in the system.
Request Body
Sezione intitolata “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
Sezione intitolata “ Responses ”Acknowledgment of the webhook event
CERTIFICATE::UPDATE
Sezione intitolata “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
Sezione intitolata “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
Sezione intitolata “ Responses ”Acknowledgment of the webhook event
CERTIFICATE::DELETE
Sezione intitolata “CERTIFICATE::DELETE”This webhook is triggered when a certificate is deleted from the system. It provides the deleted certificate.
Request Body
Sezione intitolata “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
Sezione intitolata “ Responses ”Acknowledgment of the webhook event