Update alert
PUT/Alert
This endpoint enforces business rules for alert status transitions:
- Alerts can only be closed if all workflow steps are completed.
- When closing an alert as "Reported to Authority", at least one attachment must be present.
- Status changes are tracked for audit purposes with timestamps and user information.
Request​
- application/json
Body
The request payload containing:
- AlertId – The unique identifier of the alert to update.
- AlertStatus – The new status to assign to the alert (e.g., InProgress, ClosedAsFalsePositive, ClosedAsReportedToAuthority).
- ReasonForStatusChange – A descriptive reason explaining why the status is being changed.
- UpdatedBy – The username or identifier of the user performing the update.
The unique identifier of the alert.
Possible values: [0, 1, 2, 3, 4, 5]
The current status of the alert.
The reason provided for the status change.
The username or identifier of the user who last updated this record.
Responses​
- 200
- 400
- 404
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The username or identifier of the user who created this record.
The username or identifier of the user who last updated this record.
The date and time when this record was created.
The date and time when this record was last updated.
The unique identifier of this record.
Possible values: [0, 1, 2]
The type classification of the alert.
The code of the transaction that triggered this alert.
The unique code identifying the customer.
A textual description providing additional details.
The display name of the alert.
Possible values: [0, 1, 2, 3]
The priority level assigned to the alert or action.
Possible values: [0, 1, 2, 3, 4, 5]
The current status of this entity.
The code of the user group assigned to handle this alert.
The total number of workflow steps associated with this alert.
The number of workflow steps that have been completed.
A textual representation of step completion progress (e.g., '2/5').
comments object[]nullable
The list of comments associated with this record.
The unique identifier of this record.
The text content.
The username or identifier of the user who created this record.
The date and time when this record was created.
{
"createdBy": "string",
"updatedBy": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"id": 0,
"alertType": 0,
"transactionCode": "string",
"customerCode": "string",
"description": "string",
"alertName": "string",
"priority": 0,
"status": 0,
"userGroupCode": "string",
"totalStepsCount": 0,
"completedStepsCount": 0,
"stepCompletion": "string",
"comments": [
{
"id": 0,
"text": "string",
"createdBy": "string",
"createdAt": "2024-07-29T15:51:28.071Z"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
reasons object[]nullable
The list of underlying error reasons.
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
The list of underlying error reasons.
The unique code identifying this entity.
errors object[]nullable
The list of validation errors.
The name of the field that failed validation.
The error or validation message.
{
"message": "string",
"metadata": {},
"reasons": [
{
"message": "string",
"metadata": {},
"reasons": [
null
]
}
],
"code": 0,
"errors": [
{
"field": "string",
"message": "string"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
reasons object[]nullable
The list of underlying error reasons.
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
The list of underlying error reasons.
The unique code identifying this entity.
errors object[]nullable
The list of validation errors.
The name of the field that failed validation.
The error or validation message.
{
"message": "string",
"metadata": {},
"reasons": [
{
"message": "string",
"metadata": {},
"reasons": [
null
]
}
],
"code": 0,
"errors": [
{
"field": "string",
"message": "string"
}
]
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
reasons object[]nullable
The list of underlying error reasons.
The error or validation message.
metadata objectnullable
Additional metadata associated with this record.
The list of underlying error reasons.
The unique code identifying this entity.
errors object[]nullable
The list of validation errors.
The name of the field that failed validation.
The error or validation message.
{
"message": "string",
"metadata": {},
"reasons": [
{
"message": "string",
"metadata": {},
"reasons": [
null
]
}
],
"code": 0,
"errors": [
{
"field": "string",
"message": "string"
}
]
}