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

# Add Attachments

> Connect existing attachments with this TicketMessage.

Can connect multiple attachments



## OpenAPI

````yaml /openapi/rest/openapi-v3-TicketMessage.json post /api/v1/TicketMessage/{ticketMessageEntityId}/Attachment
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - TicketMessage
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/TicketMessage/{ticketMessageEntityId}/Attachment:
    post:
      tags:
        - TicketMessage
      summary: Add Attachments
      description: |-
        Connect existing attachments with this TicketMessage.

        Can connect multiple attachments
      operationId: v1TicketMessageEntity_AddAttachments
      parameters:
        - name: ticketMessageEntityId
          in: path
          description: The id of the ticket message to connect the attachments to
          required: true
          schema:
            type: integer
            format: int32
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
          text/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
          application/xml:
            schema:
              type: array
              items:
                type: integer
                format: int32
          text/xml:
            schema:
              type: array
              items:
                type: integer
                format: int32
          application/x-www-form-urlencoded:
            schema:
              type: array
              items:
                type: integer
                format: int32
          application/json-patch+json:
            schema:
              type: array
              items:
                type: integer
                format: int32
          application/merge-patch+json:
            schema:
              type: array
              items:
                type: integer
                format: int32
        description: An array of attachments to connect to this TicketMessage
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Add Attachments](/en/api/reference/restful/agent/ticket_agent/add-attachments.md)
- [SuperOffice.WebApi.Data.Ticket AddAttachmentsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_AddAttachmentsRequest.md)
- [HTTP](/en/automation/crmscript/reference/CRMScript.Native.HTTP.md)
- [Email](/en/automation/crmscript/reference/CRMScript.Native.Email.md)
- [Create a request](/en/request/learn/create.md)
- [Add Sale Type Quote Attachment](/en/api/reference/restful/agent/quote_agent/add-sale-type-quote-attachment.md)
