CertificateAction
Manage certificate actions, which represent the association between certificates and actions (such as training, maintenance, or health checks).
You can create, update, delete, and search for certificate actions with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.1.0
Authentication
Section titled “ Authentication ”OAuth2
Section titled “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Section titled “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Section titled “Operations” POST /v2/certificate-action/index
Returns a paginated and filterable list of certificate actions.
Use POST to allow complex filters via JSON payload.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching certificate actions
object
object
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "action_type": "TRAINING" }, "per-page": 10, "page": 1, "sort": "action_name"}
Responses
Section titled “ Responses ”List of certificate actions
object
Example
{ "certificate_action_id": "ca-1", "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1", "action_name": "Safety Training", "action_code": "A001", "action_type": "TRAINING", "resource_id": "res-1", "certificate_name": "Certificate of Completion", "is_date_inherited": 0, "date_release": "2024-01-01", "office_name": "Main Office"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/certificate-action/create
Create a new certificate action by providing the required details.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Certificate action object to be created
object
Example
{ "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1"}
Responses
Section titled “ Responses ”Certificate action created successfully
object
Example
{ "certificate_action_id": "ca-1", "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1"}
GET /v2/certificate-action/view/{id}
Retrieve a certificate action by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the certificate action to retrieve
Responses
Section titled “ Responses ”Certificate action found
object
Example
{ "certificate_action_id": "ca-1", "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1", "action_name": "Safety Training", "action_code": "A001", "action_type": "TRAINING", "resource_id": "res-1", "certificate_name": "Certificate of Completion", "is_date_inherited": 0, "date_release": "2024-01-01", "office_name": "Main Office"}
Certificate action not found
delete
Section titled “delete” DELETE /v2/certificate-action/delete/{id}
Delete a certificate action 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 action to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Certificate action 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
update
Section titled “update” PUT /v2/certificate-action/update/{id}
Update an existing certificate action by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the certificate action to update
Request Body required
Section titled “Request Body required ”Certificate action object with updated data
object
Example
{ "date_expire": "2025-12-31"}
Responses
Section titled “ Responses ”Certificate action updated successfully
object
Example
{ "certificate_action_id": "ca-1", "date_expire": "2025-12-31"}
Certificate action not found
Webhooks
Section titled “Webhooks”CERTIFICATE_ACTION::CREATE
Section titled “CERTIFICATE_ACTION::CREATE”This webhook is triggered when a new certificate-action is created in the system. It provides the details of the newly created certificate-action.
Request Body
Section titled “Request Body ”Information about the newly created certificate-action
object
Example
{ "certificate_action_id": "ca-1", "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1"}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE_ACTION::UPDATE
Section titled “CERTIFICATE_ACTION::UPDATE”This webhook is triggered when a certificate-action is updated in the system. It provides the unique ID of the certificate-action and an object containing the old and new values for each updated field.
Request Body
Section titled “Request Body ”Information about the updated certificate-action, with old and new values for the changed properties.
object
The unique ID of the updated certificate-action.
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": { "date_expire": { "old": "2024-12-31", "new": "2025-12-31" } }}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE_ACTION::DELETE
Section titled “CERTIFICATE_ACTION::DELETE”This webhook is triggered when a certificate-action is deleted from the system. It provides the deleted certificate-action.
Request Body
Section titled “Request Body ”Information about the deleted certificate-action
object
Example
{ "certificate_action_id": "ca-1", "certificate_id": "cert-1", "action_id": "act-1", "date_expire": "2024-12-31", "tenant_id": "ten-1"}
Responses
Section titled “ Responses ”Acknowledgment of the webhook event