Skip to content

Restore Insight

POST
/users/{user_id}/insights/restore
curl --request POST \
--url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/insights/restore \
--header 'Content-Type: application/json' \
--data '{ "insight_id": "example", "kind": "example" }'

Un-hide a previously-dismissed insight card (the Undo path). Idempotent.

user_id
required
User Id
string format: uuid
Media typeapplication/json
DismissInsightRequest

Hide (or restore) one insight card by its stable fingerprint. kind namespaces the id across tracks; for a relationship the id is factor|metric|lag (InsightCard.id).

object
insight_id
required
Insight Id
string
kind
required
Kind
string
Examplegenerated
{
"insight_id": "example",
"kind": "example"
}

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}