Persists a given users favorite status of a timeline.
Body Required
The required fields used to favorite a (template) timeline.
-
The type of timeline to create. Valid values are
default
andtemplate
.Values are
default
ortemplate
.
PATCH /api/timeline/_favorite
curl \
-X PATCH https://localhost:5601/api/timeline/_favorite \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"templateTimelineId": "string",
"templateTimelineVersion": 42.0,
"timelineId": "string",
"timelineType": "default"
}
Response examples (200)
{
"data": {
"persistFavorite": {
"code": 42.0,
"favorite": [
{
"favoriteDate": 42.0,
"fullName": "string",
"userName": "string"
}
],
"message": "string",
"savedObjectId": "string",
"templateTimelineId": "string",
"templateTimelineVersion": 42.0,
"timelineType": "default",
"version": "string"
}
}
}
Response examples (403)
{
"body": "string",
"statusCode": 42.0
}