---
updatedAt: 2026-08-10T18:24:24.000Z
agentTools:
  projectIndex: https://api.atsanywhere.io/llms.txt
---

# Create File

Create a file to attach to an applicant's profile.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/files": {
      "post": {
        "responses": {
          "201": {
            "description": "Created a new file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File"
                }
              }
            }
          },
          "403": {
            "description": "Not authorized"
          },
          "404": {
            "description": "Record not found.  Please check to make sure that the specified ID is valid."
          },
          "409": {
            "description": "Each application can only have one of this file type."
          },
          "422": {
            "description": "Fields were invalid or missing.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "field_name": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "can't be blank"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal system error.  Please contact support in the event that this occurs."
          }
        },
        "summary": "Create File",
        "description": "Create a file to attach to an applicant's profile.",
        "tags": [
          "Application Files"
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/FilePayload"
        }
      }
    }
  },
  "info": {
    "version": "1.0.0",
    "title": "Applicant Tracking API",
    "description": "Applicant Tracking API"
  },
  "servers": [
    {
      "url": "https://api.applicant-tracking.com/api/v1"
    }
  ],
  "components": {
    "requestBodies": {
      "FilePayload": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/FilePayload"
            }
          }
        },
        "required": true
      }
    },
    "schemas": {
      "File": {
        "properties": {
          "id": {
            "type": "string",
            "example": "111"
          },
          "company_id": {
            "type": "string",
            "example": "23"
          },
          "company_external_id": {
            "type": "string",
            "example": "abc123",
            "description": "The company's external ID (set by its private label or integration partner); null when it has none."
          },
          "application_id": {
            "type": "string",
            "example": "23"
          },
          "site_id": {
            "type": "string",
            "example": "492"
          },
          "site_external_id": {
            "type": "string",
            "example": "abc123",
            "description": "The site's external ID; null when there is no site or it has none."
          },
          "filename": {
            "type": "string",
            "example": "SampleResume.pdf"
          },
          "file_type": {
            "type": "string",
            "example": "Resume"
          },
          "file_size": {
            "type": "string",
            "example": "1500"
          },
          "file_url": {
            "type": "string",
            "example": "https://www.downloadablelink.com/myfile.pdf"
          },
          "restricted": {
            "type": "boolean",
            "example": false
          },
          "created_at": {
            "type": "string",
            "example": "2018-01-08T06:34:48-08:00"
          }
        }
      },
      "FilePayload": {
        "required": [
          "filename",
          "data"
        ],
        "properties": {
          "application_id": {
            "type": "string",
            "example": "1",
            "description": "Required if an application ID is not included in the request path."
          },
          "filename": {
            "type": "string",
            "example": "MyNewResume.pdf"
          },
          "data": {
            "type": "string",
            "example": "SGlyaW5nVGhpbmcgaXMgYW4gYW1hemluZyBjb21wYW55IQ==",
            "description": "File data must be in base64 format."
          },
          "file_type": {
            "type": "string",
            "default": "Other",
            "enum": [
              "CoverLetter",
              "Resume",
              "Other"
            ]
          },
          "upload_type": {
            "type": "string",
            "default": "json"
          }
        }
      }
    }
  }
}
```