Skip to content

Get Learning Trend

GET
/api/canvas/learning/trend
curl --request GET \
--url 'https://example.com/api/canvas/learning/trend?deal_type=example&asset_type=example&section_type=example&months=6&deal_id=example' \
--header 'Authorization: Bearer <token>'

Return quality trend for a section over the last N months.

Uses time-bucketed signal snapshots to compute whether quality is improving, stable, or declining.

MULTI-TENANCY: compute_trend() currently reads from GLOBAL monthly buckets (no team-scoped monthly bucket infrastructure exists yet). Fail-closed when team_id is unavailable to prevent exposing cross-org aggregated signal counts.

deal_type
required
Deal Type

CRE deal type

string

CRE deal type

asset_type
required
Asset Type

CRE asset type

string

CRE asset type

section_type
required
Section Type

Memo section key

string

Memo section key

months
Months

Months to look back

integer
default: 6 >= 1 <= 12

Months to look back

deal_id
required
Deal Id
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}