---
title: "Add or remove your interests"
method: PATCH
path: "/v1/me/interests"
tags: ["Writes"]
---

# Add or remove your interests

`PATCH /v1/me/interests`

## Request

- Base URL: `https://api.dapperglobal.com`
- URL: `https://api.dapperglobal.com/v1/me/interests`
- Auth: API key in header `X-API-Key`

Adds or removes entities, commissions and sectors from the signed-in user's profile — the same interests `dapper://me` reports and that personalise unfiltered calls.

**This is add/remove, not replace.** The platform stores each of these as a set and overwrites it wholesale, so sending one entity there would delete the rest; this endpoint reads the current set, applies your deltas, and writes the whole thing back. `replace: true` exists for starting over and has to be asked for.

Tags are not editable here: 5 accounts out of 273 have any, while entities, commissions and sectors are what people actually filled in.

## Request body

- InterestsRequest: Agregar y quitar intereses, nunca reemplazarlos por accidente. El serializer de `dapper-back` hace `.set(...)` sobre cada M2M: mandarle una entidad **borra las otras**. Es la semántica correcta para un formulario que manda la pantalla completa, y una trampa para un agente que manda el delta. Por eso el contrato de esta API es add/remove: el servidor lee el conjunto actual, calcula la unión o la diferencia, y manda la lista completa. `replace=true` existe para «empezar de cero» y hay que pedirlo explícito.
  - `add_entity_ids` integer[]
  - `remove_entity_ids` integer[]
  - `add_commission_ids` integer[]
  - `remove_commission_ids` integer[]
  - `add_sector_ids` integer[]
  - `remove_sector_ids` integer[]
  - `replace` boolean: Treat the `add_*` lists as the complete new set and drop everything else. Destructive; off unless asked for.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dapperglobal/apis/dapper-political-intelligence-api.md) · [All operations](https://skmtc.dev/dapperglobal/apis/dapper-political-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dapperglobal/apis/dapper-political-intelligence-api/revisions/f34d9e6a2b0e?raw)
