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

# Upload attachments

> Accepts attachment uploads and returns a temporary Id for each attachment. Used to submit forms in candidate and vacancy portals.



## OpenAPI

````yaml /api-reference/openapi-public.json post /{publicTenantSlug}/attachments/temporary
openapi: 3.0.0
info:
  title: Spott API
  description: ''
  version: '1.0'
  contact: {}
servers:
  - url: https://api.gospott.com
security: []
tags:
  - name: public
    description: ''
paths:
  /{publicTenantSlug}/attachments/temporary:
    post:
      tags:
        - public
      summary: Upload attachments
      description: >-
        Accepts attachment uploads and returns a temporary Id for each
        attachment. Used to submit forms in candidate and vacancy portals.
      operationId: uploadPublicTemporaryAttachments
      parameters:
        - name: publicTenantSlug
          required: true
          in: path
          schema:
            type: string
        - name: type
          required: true
          in: query
          schema:
            enum:
              - unassigned
              - CV
              - COVER_LETTER
              - ID_DOCUMENT
              - QUESTIONNAIRE
              - PERSONALITY_TEST
              - OFFER
              - TRANSCRIPT
              - TERMS_AND_CONDITIONS
              - JOB_DESCRIPTION
              - TERMS_AND_CONDITIONS
              - SCORECARD
              - MEETING_AUDIO
              - AUDIO
              - OUTPUT
              - WORD_REPORT_EXPORT_TEMPLATE
              - PPTX_REPORT_EXPORT_TEMPLATE
              - ExportedTemplatedReport
              - ExportedTemplatedCv
              - IMPORT_CSV
              - LOGO
              - FAVICON
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AttachmentDto'
components:
  schemas:
    AttachmentDto:
      type: object
      properties:
        type:
          type: string
          nullable: true
          enum:
            - unassigned
            - CV
            - COVER_LETTER
            - ID_DOCUMENT
            - QUESTIONNAIRE
            - PERSONALITY_TEST
            - OFFER
            - TRANSCRIPT
            - TERMS_AND_CONDITIONS
            - JOB_DESCRIPTION
            - TERMS_AND_CONDITIONS
            - SCORECARD
            - MEETING_AUDIO
            - AUDIO
            - OUTPUT
            - WORD_REPORT_EXPORT_TEMPLATE
            - PPTX_REPORT_EXPORT_TEMPLATE
            - ExportedTemplatedReport
            - ExportedTemplatedCv
            - IMPORT_CSV
            - LOGO
            - FAVICON
        attachmentId:
          type: string
        attachmentName:
          type: string
          nullable: true
        createdAt:
          format: date-time
          type: string
        extension:
          type: string
          nullable: true
        size:
          type: number
          nullable: true
      required:
        - type
        - attachmentId
        - attachmentName
        - createdAt
        - extension
        - size

````