> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tangoanalytics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Drop Department hierarchy file at SFTP path



## OpenAPI

````yaml /tango_space/integrations/guides/space-department-hierarchy-inbound-file.yaml post /inbound/dept
openapi: 3.1.0
info:
  title: Tango Space Department Hierarchy Inbound — File
  version: '0.5'
  description: |
    SFTP file-based inbound. Client drops a pipe-delimited file of Department
    records on Tango's SFTP server. Tango creates/updates Department records
    (under Building → Navigation → Department Hierarchy). Inactivation via
    status; Tango never deletes.

    Upsert key: `COST_CENTER`. Department Name must be unique.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
  x-transport: sftp
  x-file-format: pipe-delimited text (.txt)
  x-file-naming-convention: '{ClientName}_dept_MMDDYYYYHHMMSS.txt'
servers:
  - url: sftp://sftp.tangoanalytics.com
    description: Production SFTP
    x-environment: production
    x-path: /inbound/dept
  - url: sftp://sftpdev.tangoanalytics.com
    description: Test SFTP (SIT/UAT)
    x-environment: test
    x-path: /inbound/dept
security:
  - sftpUserPassword: []
tags:
  - name: Department Hierarchy File
paths:
  /inbound/dept:
    post:
      tags:
        - Department Hierarchy File
      summary: Drop Department hierarchy file at SFTP path
      operationId: deliverDepartmentFile
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              format: binary
              x-record-schema:
                $ref: '#/components/schemas/DepartmentRow'
      responses:
        '200':
          description: File received and queued.
components:
  securitySchemes:
    sftpUserPassword:
      type: http
      scheme: basic
      description: Source lists username `tango_dev`, password TBD.

````