ActionSubscription
Manage action subscriptions, which represent the assignment of actions (such as training, maintenance, or health checks) to resources (people, materials, etc.).
You can create, update, delete, and search for action subscriptions with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
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.
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.
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.
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.
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.
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