Append additional drawings to an existing analysis without replacing existing drawings.Limitations#
Total drawings (existing + new) cannot exceed 20
All clientObjectIds must be unique across all drawings
New drawings must not reference objectIds that don't exist
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"drawings": [
{
"type": "FIB_RETRACEMENT",
"clientObjectId": "fib_swing",
"points": [
{
"time": "2025-01-08T00:00:00Z",
"price": 1.085
},
{
"time": "2025-01-09T12:00:00Z",
"price": 1.095
}
],
"levels": [
0,
0.236,
0.382,
0.5,
0.618,
0.786,
1
],
"style": {
"color": "#FFA500",
"lineWidth": 1
}
}
]
}
Request Code Samples
curl --location --request POST 'https://integration.returning.ai/apis/v1/analysis/507f1f77bcf86cd799439022/drawings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"drawings": [
{
"type": "FIB_RETRACEMENT",
"clientObjectId": "fib_swing",
"points": [
{
"time": "2025-01-08T00:00:00Z",
"price": 1.085
},
{
"time": "2025-01-09T12:00:00Z",
"price": 1.095
}
],
"levels": [
0,
0.236,
0.382,
0.5,
0.618,
0.786,
1
],
"style": {
"color": "#FFA500",
"lineWidth": 1
}
}
]
}'
Responses
application/json
Drawings appended successfully
{
"status": "success",
"message": "Drawings appended successfully",
"data": {
"analysisId": "507f1f77bcf86cd799439022",
"appendedDrawings": 1,
"totalDrawings": 4,
"objectIdMap": {
"fib_swing": "60d5ec49f1b2c8b1f8e4c8a5"
}
}
}
Modified at 2026-01-09 13:35:47