Spaces method and path for this operation:
patch /s/{space_id}/api/timeline/_favorite
Refer to Spaces for more information.
Favorite a Timeline or Timeline template for the current user.
PATCH
/api/timeline/_favorite
curl \
--request PATCH 'https://localhost:5601/api/timeline/_favorite' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"templateTimelineId":null,"templateTimelineVersion":null,"timelineId":"15c1929b-0af7-42bd-85a8-56e234cc7c4e","timelineType":"default"}'
Request example
{
"templateTimelineId": null,
"templateTimelineVersion": null,
"timelineId": "15c1929b-0af7-42bd-85a8-56e234cc7c4e",
"timelineType": "default"
}
Response examples (200)
{
"favorite": [
{
"favoriteDate": 1741337636741,
"userName": "elastic"
}
],
"savedObjectId": "15c1929b-0af7-42bd-85a8-56e234cc7c4e",
"timelineType": "default",
"version": "WzE2LDFd"
}
Response examples (403)
{
"body": "Forbidden",
"statusCode": 403
}