CertificateAction
A CertificateAction links a certificate to a specific action, proving that the certificate satisfies that compliance requirement. It is the connection between the proof of compliance (the certificate) and the required action.
Requires an existing certificate and an existing action within the same project.
After creation, the system automatically recalculates the compliance status of matching compliance schedule entries (ActionSubscription) for the same action and the same resource as the certificate. Without this link, the certificate exists but has no effect on the compliance schedule.
The date_expire field is the expiration date specific to this link. If not provided,
it is inherited from the certificate’s expiration date. The is_date_inherited field
in responses indicates whether the date belongs to this link or is inherited from the certificate.
Use this API to:
- Link a certificate to an action after creating the certificate
- Find all certificate-action links for a certificate or an action
- Check which certificate covers which action for a resource
- Version
- 2.0.0
- OpenAPI version
- 3.0.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 list of certificate-action links.
Most useful filters:
certificate_id: all links for a specific certificateaction_id: all certificates linked to an actionaction_type: filter by requirement typeresource_id: all links for a specific resource
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching certificate-action links
object
object
Unique identifier of the link.
The linked certificate.
The linked action.
Expiration date. May be inherited from the certificate if not set on this link.
The project (company) this link belongs to.
Name of the linked action.
Code of the linked action.
Type of the linked action.
The resource the certificate is issued to (from the certificate).
Name of the linked certificate.
Whether date_expire is inherited from the certificate (1) or set on this link (0).
Issue date of the linked certificate.
Name of the office where the action is defined.
ID of the office where the action is defined.
Field to sort by. Prefix with minus for descending order (e.g. “-date_expire”).
Example
{ "filter": { "action_type": "TRAINING", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c" }, "per-page": 10, "page": 1, "sort": "action_name"}Responses
Section titled “ Responses ”List of certificate-action links
object
Unique identifier of the link.
The linked certificate.
The linked action.
Expiration date. May be inherited from the certificate if not set on this link.
The project (company) this link belongs to.
Name of the linked action.
Code of the linked action.
Type of the linked action.
The resource the certificate is issued to (from the certificate).
Name of the linked certificate.
Whether date_expire is inherited from the certificate (1) or set on this link (0).
Issue date of the linked certificate.
Name of the office where the action is defined.
ID of the office where the action is defined.
Example
[ { "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "date_expire": "2029-01-15", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01", "action_name": "Fire Safety Training Medium Risk", "action_code": "FST-01", "action_type": "TRAINING", "resource_id": "e3a1f5d2-8c4b-4e7a-9f6d-2b1c3d4e5f6a", "certificate_name": "Fire Safety Training Certificate", "date_release": "2024-01-15", "is_date_inherited": 0, "office_name": "Rome North Site", "office_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }]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
Creates a new certificate-action link.
Requires certificate_id, action_id, and tenant_id (project_id).
The certificate_action_id is auto-generated if not provided.
After creation, the system automatically updates the compliance status of matching
schedule entries. This is the step that actually transitions a subscription from
NEW or EXPIRED to VALID.
The date_expire field is optional: if not provided, the expiration is inherited
from the certificate.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Certificate-action link to create
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01"}Responses
Section titled “ Responses ”Certificate-action link created successfully
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "date_expire": "2029-01-15", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01"} GET /v2/certificate-action/view/{id}
Retrieves a single certificate-action link by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The certificate_action_id to retrieve.
Responses
Section titled “ Responses ”Certificate-action link found
object
Unique identifier of the link.
The linked certificate.
The linked action.
Expiration date. May be inherited from the certificate if not set on this link.
The project (company) this link belongs to.
Name of the linked action.
Code of the linked action.
Type of the linked action.
The resource the certificate is issued to (from the certificate).
Name of the linked certificate.
Whether date_expire is inherited from the certificate (1) or set on this link (0).
Issue date of the linked certificate.
Name of the office where the action is defined.
ID of the office where the action is defined.
Example
{ "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "date_expire": "2029-01-15", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01", "action_name": "Fire Safety Training Medium Risk", "action_code": "FST-01", "action_type": "TRAINING", "resource_id": "e3a1f5d2-8c4b-4e7a-9f6d-2b1c3d4e5f6a", "certificate_name": "Fire Safety Training Certificate", "date_release": "2024-01-15", "is_date_inherited": 0, "office_name": "Rome North Site", "office_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}Certificate-action link not found
update
Section titled “update” PUT /v2/certificate-action/update/{id}
Updates an existing certificate-action link.
Typical use case: changing the date_expire specific to this link.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The certificate_action_id to update.
Request Body required
Section titled “Request Body required ”Fields to update
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "date_expire": "2030-01-15"}Responses
Section titled “ Responses ”Certificate-action link updated successfully
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "date_expire": "2030-01-15"}Certificate-action link not found
delete
Section titled “delete” DELETE /v2/certificate-action/delete/{id}
Deletes a certificate-action link.
After deletion, the system automatically recalculates the compliance status of matching
schedule entries. This may cause a subscription to revert to EXPIRED or NEW.
If force=false (default), the response lists related entities.
If force=true, the link is deleted.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The certificate_action_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the link. If false, returns a preview of affected entities.
Responses
Section titled “ Responses ”Certificate-action link deleted successfully
Preview of entities that would be affected (returned when force=false)
Webhooks
Section titled “Webhooks”CERTIFICATE_ACTION::CREATE
Section titled “CERTIFICATE_ACTION::CREATE”Triggered when a new certificate-action link is created.
Request Body
Section titled “Request Body ”The newly created certificate-action link
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "date_expire": "2029-01-15", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01"}Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE_ACTION::UPDATE
Section titled “CERTIFICATE_ACTION::UPDATE”Triggered when a certificate-action link is updated. Provides old/new values for changed fields.
Request Body
Section titled “Request Body ”Updated certificate-action with old and new values for changed fields
object
The certificate_action_id of the updated link.
Each key is an updated field name, with its old and new values.
object
object
Example
{ "entity_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "updated_fields": { "date_expire": { "old": "2029-01-15", "new": "2030-01-15" } }}Responses
Section titled “ Responses ”Acknowledgment of the webhook event
CERTIFICATE_ACTION::DELETE
Section titled “CERTIFICATE_ACTION::DELETE”Triggered when a certificate-action link is deleted.
Request Body
Section titled “Request Body ”The deleted certificate-action link
object
Unique identifier of the link. Auto-generated if not provided on creation.
The certificate being linked. Pass the certificate_id obtained from the Certificate API.
The action the certificate is linked to. Pass the action_id obtained from the Action API.
Expiration date specific to this link. If not provided, inherited from the certificate’s expiration date.
The project (company) this link belongs to. Pass the project_id.
Example
{ "certificate_action_id": "a8b9c0d1-e2f3-4a5b-6c7d-8e9f0a1b2c3d", "certificate_id": "f6a7b8c9-d0e1-2f3a-4b5c-6d7e8f9a0b1c", "action_id": "c4d5e6f7-a8b9-0c1d-2e3f-4a5b6c7d8e9f", "tenant_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01"}Responses
Section titled “ Responses ”Acknowledgment of the webhook event