---
title: "Upsert (création ou update) de la config SIEM forward."
method: PUT
path: "/api/v1/admin/integrations/siem"
tags: ["Administration"]
---

# Upsert (création ou update) de la config SIEM forward.

`PUT /api/v1/admin/integrations/siem`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/admin/integrations/siem`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Upsert (création ou update) de la config SIEM forward.

    Body JSON :
      - siem_webhook_url (str, required) : URL HTTPS du collector SIEM.
      - siem_type (str, optional) : splunk|sentinel|datadog|generic
        (défaut generic).
      - hmac_secret (str, optional) : si fourni, chiffré et stocké.
        Pour effacer un secret existant : envoyer une chaîne vide "".
        Pour ne pas toucher au secret existant : omettre la clé.
      - is_active (bool, optional, défaut True) : flag d'activation.

    Réponse 200 : config sérialisée (cf `_serialize`).

**Permissions requises** : `webhooks:configure_siem`

## Request body

- SiemConfigUpsertRequest
  - `hmac_secret` string, nullable
  - `is_active` boolean
  - `siem_type` 'splunk' | 'sentinel' | 'datadog' | 'generic'
  - `siem_webhook_url` string, required

## Response `200`

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

- object
  - `data` SiemConfigResponse
    - `configured` boolean
    - `created_at` string, nullable
    - `failure_count` integer
    - `hmac_secret_set` boolean
    - `id` string
    - `is_active` boolean
    - `last_forward_at` string, nullable
    - `siem_type` string, nullable
    - `siem_webhook_url` string, nullable
    - `success_count` integer
    - `updated_at` string, nullable
  - `meta` PaginationMeta: Métadonnées de pagination cursor (cf. API-GUIDE §6).
    - `limit` integer
    - `next_cursor` string, nullable
    - `prev_cursor` string, nullable
    - `total_count` integer

## Other responses

- `400`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `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).
- `409`: État incohérent (email dupliqué, ressource déjà dans cet état, etc.).
- `422`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `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)
