ActionSubscription
Defines the assignment of resources to a preventive action, indicating the need to schedule one or more related action sessions. Assigned resources may include personnel, materials, personal protective equipment (PPE), or work phases that must be fulfilled through scheduled execution.
- 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
Flow type: refreshToken
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/action-subscription/index
Returns a paginated and filterable list of action subscriptions. Use POST to allow complex filters via JSON payload.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching action subscriptions
object
object
Example
{ "filter": { "action_type": "TRAINING", "subscriber_type": "PERSON" }, "per-page": 20, "page": 1, "sort": "action_name"}
Responses
Section titled “ Responses ”List of action subscriptions
object
Example
{ "action_subscription_id": "asub-1", "action_id": "act-1", "action_type": "TRAINING", "action_code": "A001", "action_name": "Safety Training", "subscriber_id": "pers-1", "subscriber_type": "PERSON", "subscriber_name": "John Doe", "status": "NEW", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
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/action-subscription/create
Create a new action subscription by providing the required details.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Action subscription object to be created
object
object
Example
{ "action_id": "act-1", "subscriber_id": "pers-1", "subscriber_type": "PERSON", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Responses
Section titled “ Responses ”Action subscription created successfully
object
object
Example
{ "action_subscription_id": "asub-1", "action_id": "act-1", "subscriber_id": "pers-1", "subscriber_type": "PERSON", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
GET /v2/action-subscription/view/{id}
Retrieve an action subscription by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the action subscription to retrieve
Responses
Section titled “ Responses ”Action subscription found
object
Example
{ "action_subscription_id": "asub-1", "action_id": "act-1", "action_type": "TRAINING", "action_code": "A001", "action_name": "Safety Training", "subscriber_id": "pers-1", "subscriber_type": "PERSON", "subscriber_name": "John Doe", "status": "NEW", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Action subscription not found
update
Section titled “update” PUT /v2/action-subscription/update/{id}
Update an existing action subscription by its unique ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”ID of the action subscription to update
Request Body required
Section titled “Request Body required ”Action subscription object with updated data
object
object
Example
{ "subscriber_name": "Jane Doe", "status": "VALID"}
Responses
Section titled “ Responses ”Action subscription updated successfully
object
object
Example
{ "action_subscription_id": "asub-1", "subscriber_name": "Jane Doe", "status": "VALID"}
Action subscription not found
delete
Section titled “delete” DELETE /v2/action-subscription/delete/{id}
Delete an action subscription 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 action subscription to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Action subscription 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