> ## 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.

# Upload Attachment

> Upload the content for an attachment



## OpenAPI

````yaml /openapi/rest/openapi-v3-Attachment.json post /api/v1/Attachment/{attachmentId}/Content
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Attachment
  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/Attachment/{attachmentId}/Content:
    post:
      tags:
        - Attachment
      summary: Upload Attachment
      description: Upload the content for an attachment
      operationId: v1AttachmentEntity_UploadAttachment
      parameters:
        - name: attachmentId
          in: path
          description: The id of the attachment row, for which to attach the upload data
          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:
              format: byte
              type: string
          text/json:
            schema:
              format: byte
              type: string
          application/xml:
            schema:
              format: byte
              type: string
          text/xml:
            schema:
              format: byte
              type: string
          application/x-www-form-urlencoded:
            schema:
              format: byte
              type: string
          image/jpeg:
            schema:
              format: byte
              type: string
          image/jpg:
            schema:
              format: byte
              type: string
          image/png:
            schema:
              format: byte
              type: string
          image/gif:
            schema:
              format: byte
              type: string
          image/bmp:
            schema:
              format: byte
              type: string
          image/tiff:
            schema:
              format: byte
              type: string
          application/octet-stream:
            schema:
              format: byte
              type: string
          application/msword:
            schema:
              format: byte
              type: string
          application/rtf:
            schema:
              format: byte
              type: string
          application/vnd.openxmlformats-officedocument.wordprocessingml.document:
            schema:
              format: byte
              type: string
          application/vnd.ms-excel:
            schema:
              format: byte
              type: string
          application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
            schema:
              format: byte
              type: string
          application/vnd.ms-powerpoint:
            schema:
              format: byte
              type: string
          application/vnd.openxmlformats-officedocument.presentationml.presentation:
            schema:
              format: byte
              type: string
          multipart/form-data:
            schema:
              format: byte
              type: string
          application/json-patch+json:
            schema:
              format: byte
              type: string
          application/merge-patch+json:
            schema:
              format: byte
              type: string
        description: A stream to the content to be uploaded
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Upload Attachment](/en/api/reference/restful/agent/ticket_agent/upload-attachment.md)
- [SuperOffice.WebApi.Data.Ticket UploadAttachmentRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_UploadAttachmentRequest.md)
- [NSTicketAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSTicketAgent.md)
- [SuperOffice.WebApi.Agents.ITicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITicketAgent.md)
- [SuperOffice.WebApi.Agents.TicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TicketAgent.md)
- [System requirements for SuperOffice CRM Online](/en/online/system-requirements.md)
