Certificate
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
Section titled “Operations” POST /v2/certificate/index
Returns a paginated and filterable list of certificates.
Use POST to allow complex filters via JSON payload.
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.
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.
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.
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.
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