Update an existing analysis. Supports partial updates to:Text fields (title, preferenceText, alternativeText, comments)
Levels (must maintain ordering rules)
Drawings (replaces all drawings)
Links (remapped to persisted IDs)
Webhook Events#
Triggers update_analysis webhook event with updated analysis payload.Bot Notifications#
Publishes to Redis channel bot:notification with change details. Request
Body Params application/jsonRequired
{
"metadata": {
"title": "EURUSD Updated Analysis"
},
"sender": "pangray2025+t5@gmail.com"
}
Request Code Samples
curl --location --request PATCH 'https://sgtr-rai-api.returning.ai/api/v1/apis/v1/analysis/6978da419dfe29f77fbab39e' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"title": "EURUSD Updated Analysis"
},
"sender": "pangray2025+t5@gmail.com"
}'
Responses
application/json
Analysis updated successfully
{
"status": "success",
"message": "Analysis updated successfully",
"data": {
"analysisId": "507f1f77bcf86cd799439022",
"updatedFields": [
"title",
"preferenceText",
"expiry"
]
}
}
Modified at 2026-04-09 08:39:35