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

# Mark a ticket as spam

> Mark a ticket as spam: flags the ticket (and its merged duplicates) as spam, archives it into
the spam tab, and blocks the contact — future tickets from them are auto-flagged as spam and
inbound emails from them are dropped unless whitelisted. Undo via unarchive ("Not spam"),
which clears the spam flag and unblocks the contact again.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /tickets/{ticketId}/spam
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}/spam:
    put:
      tags:
        - Ticket
      summary: Mark a ticket as spam
      description: >-
        Mark a ticket as spam: flags the ticket (and its merged duplicates) as
        spam, archives it into

        the spam tab, and blocks the contact — future tickets from them are
        auto-flagged as spam and

        inbound emails from them are dropped unless whitelisted. Undo via
        unarchive ("Not spam"),

        which clears the spam flag and unblocks the contact again.
      operationId: MarkTicketAsSpam
      parameters:
        - in: path
          name: ticketId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````