# Create trueflow attachment

Create an Attachment for a TrueFlow

Endpoint: POST /v1/true-flows-attachments
Version: 1.6.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    http bearer API Key

## Request body:

  - `application/json` (unknown)
    Request payload for creating an attachment

## Request fields (application/json):

  - `file_name` (string, required)
    Name of the file to upload

## Request examples:

  - `Request an url to upload an attachment` (unknown)

## Response 201:

  - `201` (unknown)
    TrueFlows data

## Response 201 fields (application/json):

  - `token` (string, required)
    Unique identifier for the Attachment

  - `file_name` (string, required)
    Name of the uploaded file

  - `upload_url` (string, required)
    Upload url where to upload the file

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/problem+json):

  - `type` (string)
    A URI reference that identifies the problem type.
    Example: https://api.truescreen.io/errors/validation-error

  - `title` (string, required)
    Short, human-readable summary of the problem.
    Example: Validation failed

  - `status` (integer)
    HTTP status code.
    Example: 400

  - `detail` (string)
    Human-readable explanation specific to this occurrence.
    Example: One or more fields have invalid values

  - `code` (string, required)
    Unique code to identify the error.
    Example: TS-000

## Response 201 examples:

  - `Update special event request` (unknown)

## Response 400 examples:

  - `Malformed payload` (unknown)

  - `Payload validation (e.g. missing file_name)` (unknown)

