# Destroy Event

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/management/rsvp_events/{id}:
    delete:
      summary: Destroy Event
      deprecated: false
      description: Destroy RSVP event
      tags:
        - API Reference/Management API/RSVP Events/Events
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          schema:
            type: integer
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  rsvp_event:
                    $ref: '#/components/schemas/Event'
                x-apidog-orders:
                  - rsvp_event
                required:
                  - rsvp_event
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Management API/RSVP Events/Events
      x-apidog-status: pending
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-4311850-run
components:
  schemas:
    Event:
      type: object
      properties:
        id:
          type: string
        name: &ref_2
          type: string
        starts_at: &ref_0
          description: The start date and time of the event.
          $ref: '#/components/schemas/date_time'
        ends_at: *ref_0
        registration_deadline: *ref_0
        place: &ref_3
          type: string
        open: &ref_4
          type: boolean
          description: no attendance limit when registering
        registered_members_limit: &ref_5
          type: integer
          description: limit of member who could register to event
          minimum: 0
        checkin_time_limit: &ref_6
          type: integer
          description: in minutes
          minimum: 0
        status: &ref_7
          $ref: '#/components/schemas/cms.status'
        visible_since: &ref_8
          $ref: '#/components/schemas/cms.visible_since'
        visible_until: &ref_9
          $ref: '#/components/schemas/cms.visible_until'
        title: &ref_1
          description: Localized title strings
          $ref: '#/components/schemas/LocalizedContent'
        lead: *ref_1
        content: *ref_1
        image:
          $ref: '#/components/schemas/File'
        registered_members_count:
          type: integer
          nullable: true
        checkin_members_count:
          type: integer
          nullable: true
        created_at:
          $ref: '#/components/schemas/date_time.created_at'
        updated_at:
          $ref: '#/components/schemas/date_time.updated_at'
        menu_item:
          type: string
          enum:
            - events
            - prosale
          x-apidog-enum:
            - value: events
              name: ''
              description: ''
            - value: prosale
              name: ''
              description: ''
          description: category/menu name in mobile app
          nullable: true
      x-apidog-orders:
        - id
        - 01KRDZV5QV8TW1XVJ3N79KQK4A
        - image
        - registered_members_count
        - checkin_members_count
        - created_at
        - updated_at
        - menu_item
      required:
        - id
        - name
        - starts_at
        - ends_at
        - status
        - visible_since
        - visible_until
        - image
        - registered_members_count
        - checkin_members_count
        - created_at
        - updated_at
        - menu_item
      x-apidog-refs:
        01KRDZV5QV8TW1XVJ3N79KQK4A:
          $ref: '#/components/schemas/EventPayload'
      x-apidog-ignore-properties:
        - name
        - starts_at
        - ends_at
        - registration_deadline
        - place
        - open
        - registered_members_limit
        - checkin_time_limit
        - status
        - visible_since
        - visible_until
        - title
        - lead
        - content
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    File:
      type: object
      properties:
        url:
          type: string
          format: uri
          readOnly: true
          examples:
            - https://example.com/image.png
        identifier:
          type: string
          description: Only present when parent record has many files
          examples:
            - '1'
        mime_type:
          type: string
          examples:
            - image/jpeg
          readOnly: true
          description: Only present in certain circumstances
          nullable: true
        created_at:
          type: string
          format: date-time
          examples:
            - '2022-11-09T15:46:00.252860Z'
        updated_at:
          type: string
          format: date-time
          readOnly: true
          examples:
            - '2022-11-09T15:46:00.252860Z'
        image_details:
          type: object
          properties:
            width:
              type: integer
              minimum: 1
            height:
              type: integer
              minimum: 1
          x-apidog-orders:
            - width
            - height
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - url
        - identifier
        - mime_type
        - created_at
        - updated_at
        - image_details
      required:
        - url
        - created_at
        - updated_at
      readOnly: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    LocalizedContent:
      type: object
      properties: {}
      x-apidog-orders: []
      title: ''
      examples:
        - en: Text
      additionalProperties:
        type: string
        description: >-
          The actual set of languages depends on LC configuration. See:
          [Localization](doc-341959)
        examples:
          - Tekst
        nullable: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    cms.visible_until:
      type: string
      description: Date until the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      x-apidog-folder: ''
    cms.visible_since:
      type: string
      description: Date since the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    cms.status:
      type: string
      enum:
        - draft
        - published
        - unpublished
      examples:
        - published
      description: Determines visibility in [Public API](doc-341643)
      x-apidog-enum:
        - name: ''
          value: draft
          description: ''
        - name: ''
          value: published
          description: ''
        - name: ''
          value: unpublished
          description: ''
      x-apidog-folder: ''
    date_time:
      type: string
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    EventPayload:
      type: object
      required:
        - name
        - starts_at
        - ends_at
        - status
        - visible_since
        - visible_until
        - menu_item
      properties:
        name: *ref_2
        starts_at: *ref_0
        ends_at: *ref_0
        registration_deadline: *ref_0
        place: *ref_3
        open: *ref_4
        registered_members_limit: *ref_5
        checkin_time_limit: *ref_6
        status: *ref_7
        visible_since: *ref_8
        visible_until: *ref_9
        title: *ref_1
        lead: *ref_1
        content: *ref_1
        menu_item:
          type: string
          description: category/menu name in mobile app
          enum:
            - events
            - prosale
          x-apidog-enum:
            - value: events
              name: ''
              description: ''
            - value: prosale
              name: ''
              description: ''
          nullable: true
      x-apidog-orders:
        - name
        - starts_at
        - ends_at
        - registration_deadline
        - place
        - open
        - registered_members_limit
        - checkin_time_limit
        - status
        - visible_since
        - visible_until
        - title
        - lead
        - content
        - menu_item
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```