favorite

Toggle Favorite

Toggle a row favorite. Returns the new favorited state.

The body is optional, and must stay so: deploy-full ships the client before the API and a loaded tab keeps its old bundle indefinitely, so a required body would 422 every favorite click in that tab until the user happens to reload. It carries analytics context only and must never feed an authorization decision — this route admits AccessLevel.READ callers.

post/api/v1/favorite/{project_id}/{feature_id}

Path parameters

feature_idstring required

Request body

layer_idstring uuid nullable
visible_feature_idsstring[] nullable
row_positioninteger nullable
position_source'grid_viewport' | 'server_cursor' | 'map_stack'
total_rowsinteger nullable
is_groupedboolean nullable
filter_modelobject nullable
show_favorites_onlyboolean nullable
search_textstring nullable
comparison_scope'table_viewport' | 'map_stack' | 'navigation_neighbors' | 'unavailable'
source'table_cell' | 'table_shortcut' | 'detail_panel' required
session_idstring nullable

Response

Successful Response

favoritedboolean required

Changes

Changed in 1 of the 16 revisions of this API.2

    • added optional request body

      request-body-added-optional

    • added the required property favorited to the response with the 200 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog