openapi: 3.2.0 info: title: Decipher Rest SFTP Distribution API version: '1.0' description: The Decipher REST API allows comprehensive automation of your private or shared Decipher instance. servers: - url: https://{server}/api/v1 description: Replace server with your instance domain. variables: server: default: selfserve.decipherinc.com description: Server domain security: - APIKey: [] tags: - name: SFTP Distribution paths: /distribute/ftp: post: operationId: createDistributeFtp summary: Send API to SFTP description: 'Upload data via FTP or SFTP. This meta-API call requires you to specify another API call as input You can specify any amount of API calls that generate attachments (i.e. non-JSON output). Some useful calls are: * saved crosstabs export * datamap * data out If successful, a log of the connection is returned.' tags: - SFTP Distribution requestBody: content: application/json: schema: type: object properties: sources: description: 'any number of API data sources to call to get the data. Note that URL arguments must be passed via args only. ' type: array items: type: object properties: api: type: string description: the path of the api to call example: /api/v1/surveys/your/survey/datamap args: type: object description: arguments to pass to the api call method: type: string description: the http method to use default: GET filename: type: string description: filename to use for the upload username: description: user name to login with type: string password: description: password for the user type: string host: description: remote hostname type: string protocol: description: 'either ftp or sftp. SFTP is "FTP" over SSH and is the only recommended transfer method. ' default: sftp type: string enum: - ftp - sftp directory: description: switch to this directory before uploading the files. type: string required: - sources - username - password - host responses: '200': description: OK content: application/json: schema: type: object properties: debug: type: string description: log of the ftp session example: debug: '[28/Jul/15 20:31:58] 220 (vsFTPd 2.3.5) [28/Jul/15 20:31:58] 220 (vsFTPd 2.3.5) [28/Jul/15 20:31:58] 230 Login successful. [28/Jul/15 20:31:58] 250 Directory successfully changed. [28/Jul/15 20:31:58] 226 Transfer complete. [28/Jul/15 20:31:58] /home/bgates/Private/h/dev/data/tmp/tmpCEi7Qf transferred to localhost ' components: securitySchemes: APIKey: type: apiKey in: header name: x-apikey description: 'In order to access the api, you''ll need to generate an API key. Refer to the instructions [here](/docs/decipher/api#section/API-Keys) to generate and configure an API key with the appropriate permission sets. You can generate as many keys as required. Configure each request to include your API key in the request header. For example: ``` x-apikey: dp48ss3mgsaucyjtybxw728h7s4cgnwzhejtszdwhf4xpe8yhmtdwpk2ntdhtwbs ``` ' x-tagGroups: - name: Autoclose tags: - Autoclose - name: Data Input and Output tags: - Data - Data Feed - Response Summary - Modifying Data - Datasources - Datasources Data - Umerge - name: Survey Metadata tags: - Simulated Data - Survey State - Survey Evaluate - Survey Quotas - Survey Files - Survey Warnings - Survey Terms - Survey Subscribers - Survey Users - Survey Tasks - name: Panels tags: - Panel Data - Panel Datapoints - Survey Panels - name: Research Hub tags: - Users - Companies - Categories - Surveys - Panels - Crosstabs - Archives - Archival Reports - API Keys - Usage - Warnings Summary - name: Crosstabs tags: - Crosstabs Configuration - Crosstabs Execution - Crosstabs Nets - Saved Crosstabs - Crosstabs Table Settings - Crosstabs Validation - Crosstabs Rim Weighting - name: Dashboards tags: - Dashboards - name: DQ APIs tags: - DQ-Specific API Calls - MaxDiff API Calls - Discrete Choice Model API Calls - Media Testimonial API Calls - name: Response Summary tags: - Share Link - name: Sample Management tags: - Bounced Emails - Participant Sources - name: Distribution tags: - Email Distribution - SFTP Distribution - Slack Distribution - name: Campaign Manager tags: - Campaigns - Campaign Email Invites - Campaign Exports - Campaign Lists - Shared Campaign Lists - Campaign Sends - Campaign Status Lists - Supression Lists - name: Question Library tags: - Company Element - Company Elements - Survey Elements - Survey Element Report Settings - name: Language Manager tags: - LM Application Data - LM Application Translations - Translation Resources - Translations - Translation Deltas - Translation Reservations - Primary Survey Language - Other Survey Languages - Unused Survey Languages - name: Project Parameters tags: - Available Project Parameters - Saved Project Parameters - Project Parameters Configuration - name: Multi-User Editing tags: - Available Sections - Check Out Section - Check In Section - Sync Section - Section Editor - Abandon Section - Validate Section - name: Video Management tags: - Videos - Watermarked Videos - name: Miscellaneous tags: - System Information - Logic Nodes - Logic Events - CATI - Global Search - Miscellaneous