Certificate
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage certificates for resources such as people, materials, or equipment.
You can create, update, delete, and search for certificates with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.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.
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.
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.
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.
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.
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