> ## Documentation Index
> Fetch the complete documentation index at: https://developers.marko.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Rejeter un événement IA

> Rejette un événement proposé.

**Scope requis :** `calendar:write`. [Scopes et délégation](/scopes-and-delegation).



## OpenAPI

````yaml /openapi.json post /calendar/events/{event_id}/actions/reject
openapi: 3.1.0
info:
  title: MARKO External Partner API
  version: v1
  description: >-
    Stable external API contract for the live environment.


    Authentication flow for partner integrations:

    1. Generate an API key from the MARKO entity admin API section.

    2. Keep the raw API secret server-side and use it only to sign `POST
    /v1/auth/token`.

    3. Build the canonical message
    `MARKO-EXTERNAL-API-TOKEN-V1\n{key_id}\n{timestamp}\n{nonce}`.

    4. Sign that message with HMAC-SHA256 and send the hex signature with
    `key_id`, `timestamp` and `nonce`.

    5. Use the returned short-lived bearer on business endpoints as
    `Authorization: Bearer <access_token>`.

    The raw API secret must never be sent on business endpoints.


    This public contract intentionally excludes beta endpoints.


    Référence enrichie pour les développeurs et les assistants IA. Exemples
    synthétiques; les champs sont extraits des modèles et sérialiseurs de la
    version indiquée dans x-documentation-provenance.
servers:
  - url: https://partner-api.marko.fr/v1
security:
  - BearerAuth: []
tags:
  - name: auth
    x-group: Authentification
  - name: entity
    x-group: Entité
  - name: portfolio
    x-group: Portefeuille
  - name: deals
    x-group: Deals
  - name: fonds
    x-group: Fonds
  - name: spvs
    x-group: SPV
  - name: operations
    x-group: Opérations
  - name: taxonomies
    x-group: Taxonomies
  - name: import-jobs
    x-group: Imports par lot
  - name: comments
    x-group: Commentaires
  - name: documents
    x-group: Documents
  - name: users
    x-group: Utilisateurs
  - name: settings
    x-group: Paramètres
  - name: rcci
    x-group: Conformité RCCI
  - name: field-definitions
    x-group: Champs métier
  - name: search
    x-group: Recherche
  - name: operateurs
    x-group: Opérateurs
  - name: alerts
    x-group: Alertes
  - name: notifications
    x-group: Notifications
  - name: calendar
    x-group: Calendrier
  - name: enrichment
    x-group: Enrichissement SIREN
  - name: reports
    x-group: Exports
  - name: reporting
    x-group: Templates de reporting
  - name: workflows
    x-group: Workflows et extraction IA
  - name: tasks
    x-group: Tâches
externalDocs:
  description: Download the matching Postman collection.
  url: /v1/postman.json
paths:
  /calendar/events/{event_id}/actions/reject:
    post:
      tags:
        - calendar
      summary: Rejeter un événement IA
      description: >-
        Rejette un événement proposé.


        **Scope requis :** `calendar:write`. [Scopes et
        délégation](/scopes-and-delegation).
      operationId: calendar_reject
      parameters:
        - in: path
          name: event_id
          required: true
          schema:
            type: string
            format: uuid
            title: Event Id
          example: eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee
          description: >-
            Paramètre event_id pour cette route; type, format et contraintes
            ci-dessous.
        - in: header
          name: X-Request-ID
          required: false
          description: >-
            Partner-generated correlation identifier echoed in logs and error
            payloads.
          schema:
            type: string
          example: marko-calendar-reject
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalendarEventResponse'
              example:
                title: example
                event_date: '2026-10-01'
                event_type: example
                id: eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee
                entity_id: 11111111-1111-4111-8111-111111111111
                source: example
                accepted: false
                created_at: '2026-10-01T10:00:00Z'
                updated_at: '2026-10-01T10:00:00Z'
        '401':
          description: Authentication required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: about:blank
                title: Unauthorized
                status: 401
                detail: A valid bearer token is required.
                request_id: req_example_partner_call
        '403':
          description: Scope, route or IP restriction
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: about:blank
                title: Forbidden
                status: 403
                detail: The API key does not allow this operation.
                request_id: req_example_partner_call
        '404':
          description: >-
            Not Found — refus déclaré dans le handler ou un helper de cette
            route.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '422':
          description: Validation failed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: about:blank
                title: Unprocessable Content
                status: 422
                detail: The request payload or parameters are invalid.
                request_id: req_example_partner_call
        '429':
          description: Rate limit or progressive ban
          headers:
            Retry-After:
              description: Cooldown in seconds before retrying the request.
              schema:
                type: string
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: about:blank
                title: Too Many Requests
                status: 429
                detail: The request rate limit was exceeded.
                request_id: req_example_partner_call
        '500':
          description: Unexpected server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: about:blank
                title: Internal Server Error
                status: 500
                detail: An unexpected server error occurred.
                request_id: req_example_partner_call
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    CalendarEventResponse:
      properties:
        title:
          type: string
          maxLength: 300
          title: Title
          description: Titre de l'evenement
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Description detaillee
        event_date:
          type: string
          format: date
          title: Event Date
          description: Date de l'evenement
        event_type:
          type: string
          maxLength: 50
          title: Event Type
          description: >-
            Type: covenant_deadline, reporting_due, ag_date, echeance, custom,
            etc.
        operation_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Operation Id
          description: Lie a une operation (optionnel)
        operateur_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Operateur Id
          description: Lie a un operateur (optionnel)
        fond_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Fond Id
          description: Lie a un fonds (optionnel)
        spv_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Spv Id
          description: Lie a un SPV (optionnel)
        id:
          type: string
          format: uuid
          title: Id
          description: Identifiant MARKO de la ressource.
        entity_id:
          type: string
          format: uuid
          title: Entity Id
          description: Identifiant de l'entité MARKO à laquelle cette ressource appartient.
        source:
          type: string
          title: Source
          description: Origine de l'événement de calendrier.
        source_alert_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Source Alert Id
          description: Identifiant de l'alerte à l'origine de l'événement de calendrier.
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
          description: >-
            Indice de confiance associé au résultat; il ne remplace pas une
            validation humaine.
        accepted:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Accepted
          description: Indique si la proposition d'événement a été acceptée.
        idempotency_receipt:
          anyOf:
            - $ref: '#/components/schemas/ManualCreationIdempotencyReceipt'
            - type: 'null'
          description: >-
            Reçu de création manuelle indiquant notamment si une création
            précédente a été rejouée.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date de création au format ISO 8601.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Date de dernière modification au format ISO 8601.
      type: object
      required:
        - title
        - event_date
        - event_type
        - id
        - entity_id
        - source
        - created_at
        - updated_at
      title: CalendarEventResponse
      description: Schema for calendar event API response.
    ProblemDetails:
      type: object
      required:
        - title
        - status
        - detail
      properties:
        type:
          type: string
          default: about:blank
          description: >-
            URI identifiant le type de problème; about:blank lorsque seul le
            statut HTTP le caractérise.
        title:
          type: string
          description: Titre affiché pour l'événement ou le problème.
        status:
          type: integer
          description: Statut HTTP de la réponse d'erreur.
        detail:
          type: string
          description: Informations détaillées sur le problème ou le dossier.
        request_id:
          type: string
          description: Identifiant de corrélation pour le diagnostic de la requête.
        scope:
          type: string
          description: Scope concerné par le refus d'accès, lorsqu'il est renseigné.
        route_id:
          type: string
          description: Identifiant de la route concernée par le problème.
        reason_code:
          type: string
          description: >-
            Code structuré du motif de refus; préférable au texte du message
            pour le diagnostic.
    ManualCreationIdempotencyReceipt:
      properties:
        client_request_id:
          type: string
          title: Client Request Id
          description: >-
            Identifiant durable de la création manuelle; conserver la même
            valeur pour reprendre la même création.
        actor_id:
          type: string
          title: Actor Id
          description: Identifiant de l'auteur de l'événement.
        capability:
          type: string
          title: Capability
          description: Capacité de création à laquelle se rapporte le reçu d'idempotence.
        payload_digest:
          type: string
          pattern: ^[0-9a-f]{64}$
          title: Payload Digest
          description: >-
            Empreinte du contenu de la création manuelle utilisée pour détecter
            une reprise incompatible.
        replayed:
          type: boolean
          title: Replayed
          default: false
          description: >-
            Indique qu'une réponse liée à la même intention a été retrouvée et
            rejouée.
      type: object
      required:
        - client_request_id
        - actor_id
        - capability
        - payload_digest
      title: ManualCreationIdempotencyReceipt
      description: Content-free binding returned on create and later readback.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: MARKO short-lived bearer
      description: >-
        Use the `access_token` returned by `POST /v1/auth/token`. Do not send
        the raw API secret on business endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.