{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-start-file-transfer-request-schema.json",
  "title": "StartFileTransferRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-startfiletransfer-api-openapi.yml#/components/schemas/StartFileTransferRequest",
  "type": "object",
  "properties": {
    "ConnectorId": {
      "type": "string",
      "description": "The unique identifier for the connector."
    },
    "SendFilePaths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more source paths for the Amazon S3 storage. Each string represents a source file path for one outbound file transfer. For example, amzn-s3-demo-bucket/myfile.txt . Replace amzn-s3-demo-bucket with one of your actual buckets."
    },
    "RetrieveFilePaths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more source paths for the partner's SFTP server. Each string represents a source file path for one inbound file transfer."
    },
    "LocalDirectoryPath": {
      "type": "string",
      "description": "For an inbound transfer, the LocaDirectoryPath specifies the destination for one or more files that are transferred from the partner's SFTP server."
    },
    "RemoteDirectoryPath": {
      "type": "string",
      "description": "For an outbound transfer, the RemoteDirectoryPath specifies the destination for one or more files that are transferred to the partner's SFTP server. If you don't specify a RemoteDirectoryPath, the destination for transferred files is the SFTP user's home directory."
    },
    "CustomHttpHeaders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomHttpHeader"
      },
      "description": "An array of key-value pairs that represent custom HTTP headers to include in AS2 messages. These headers are added to the AS2 message when sending files to your trading partner."
    }
  },
  "required": [
    "ConnectorId"
  ],
  "$defs": {
    "CustomHttpHeader": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name of the custom HTTP header."
        },
        "Value": {
          "type": "string",
          "description": "The value of the custom HTTP header."
        }
      }
    }
  }
}