# Upload Attachment

> Perform Upload Attachment through Airtable.

Source: [https://genhealth.ai/docs/workflows/integrations/airtable/airtable_upload_attachment](https://genhealth.ai/docs/workflows/integrations/airtable/airtable_upload_attachment)

Integration: [Airtable](https://genhealth.ai/docs/workflows/integrations/airtable.md)

- Handler: `airtable_upload_attachment`

- Connection type: `airtable`

## Inputs

- `base_id` — Base Id (expression, required)
  Required literal value or workflow expression.
- `record_id` — Record Id (expression, required)
  Required literal value or workflow expression.
- `attachment_field` — Attachment Field (text, required)
  Required text value.
- `s3_path` — S3 Path (expression, required)
  Required literal value or workflow expression.
- `source_document_id` — Source Document Id (expression, required)
  Required literal value or workflow expression.
- `filename` — Filename (expression)
  Optional literal value or workflow expression.
- `content_type` — Content Type (text)
  Optional text value.

## Outputs

- `record_id` — Record Id
- `attachments` — Attachments
- `attachment_count` — Attachment Count
- `filename` — Filename
- `success` — Success
- `error` — Error
- `error_type` — Error Type
- `status_code` — Status Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "base_id",
    "record_id",
    "attachment_field",
    "s3_path",
    "source_document_id"
  ],
  "properties": {
    "base_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "s3_path": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "filename": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "record_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "content_type": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "attachment_field": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "source_document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "filename": {},
    "record_id": {},
    "error_type": {},
    "attachments": {},
    "status_code": {},
    "attachment_count": {}
  },
  "additionalProperties": true
}
```
