---
title: "Manage favorites"
method: DELETE
path: "/worksites/{id}/favorite"
tags: ["System"]
---

# Manage favorites

`DELETE /worksites/{id}/favorite`

Favorite or unfavorite a particular entity

## Request body

- Favorite
  - `id` integer
  - `favorite_id` integer
  - `type_t` string, nullable — A translated string indicating the type of favorite relationship. For example, pin describes the special type of favorite between an incident and a file, where the file is pinned in a conspicuous location within the incident; or to an organization and a message, where the message is pinned or promoted. member_of_organization describes the special type of favorite between an organization and a worksite, where the resident at the worksite is a member of that organization. Where there is no specialized type of favorite, then this value is simply favorite, for example, to identify a favorite report, another favorite user, or a favorite affiliate.
  - `created_at` string, date-time — Timestamp when the favorite was created.

## Response `201`

Entity favorited (POST)

## Other responses

- `204` — Favorite removed (DELETE)
- `400` — Invalid favorite data
- `404` — Entity not found

---

[API](https://skmtc.dev/crisiscleanup/apis/crisiscleanup-api.md) · [All operations](https://skmtc.dev/crisiscleanup/apis/crisiscleanup-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crisiscleanup/crisiscleanup-api/revisions/3fa73d4b2895/schema)
