# Favoriten

## Favorit togglen

<mark style="color:green;">`POST`</mark> `https://api.propstack.de/v1/contacts/:client_id/favorites`

Mit diesem Endpoint wird ein Favorit neu erstellt oder gelöscht, wenn es einen bereits gab.

#### Path Parameters

| Name       | Type    | Description                               |
| ---------- | ------- | ----------------------------------------- |
| client\_id | integer | Die ID des Kontaktes, welcher favorisiert |

#### Query Parameters

| Name         | Type    | Description                                   |
| ------------ | ------- | --------------------------------------------- |
| property\_id | integer | Die ID des Objektes, welches favorisiert wird |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}
