---
title: "Supprime un mapping groupe → rôle."
method: DELETE
path: "/api/v1/integrations/mappings/{mapping_id}"
tags: ["Intégrations"]
---

# Supprime un mapping groupe → rôle.

`DELETE /api/v1/integrations/mappings/{mapping_id}`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/integrations/mappings/{mapping_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Supprime un mapping groupe → rôle.

    Audit cybersécu 2026-05-23 (G3 extension) — DirectoryMapping n'est pas
    TenantMixin (scopé par FK `integration_id`). `Integration.organization_id`
    est une property (stockée dans credentials chiffrés), donc le
    tenant_filter listener ne s'applique pas. Vérif manuelle du tenant
    via la property avant de supprimer (anti-IDOR cross-tenant).

**Permissions requises** : `admin:settings`

## Response `200`

Succès — payload `{data, meta}` (cf. API-GUIDE §3.1)

## Other responses

- `204`: Suppression OK (pas de body).
- `401`: JWT manquant, expiré ou révoqué.
- `402`: L'organisation n'a pas d'abonnement actif (paywall). Rediriger vers /activate.
- `403`: Permissions `module:action` insuffisantes pour cette route.
- `404`: Ressource introuvable (ou cross-tenant — équivalent à hidden).
- `429`: Trop de requêtes. Honorer le header `Retry-After` (secondes).

---

[API](https://skmtc.dev/eyeot/apis/eyeot-erp-api.md) · [All operations](https://skmtc.dev/eyeot/apis/eyeot-erp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eyeot/apis/eyeot-erp-api/revisions/42ab95222a89?raw)
