KongPrincipal

Import user principals from a canonical CSV

Changed on

Imports user principals in bulk from a canonical CSV file. Each row creates one user principal — tagged hris_import, stamped with the row's external_id — plus its email custom identity. The optional cost_center column is stored in the principal's metadata as cost_center; rows matched to existing principals adopt the file's value, and a blank cell clears the stored one, while a file without the column leaves existing cost centers untouched. The file is validated in full before anything is written; the response is a report of counts and per-row errors, never the created rows.

post/v2/directories/{directoryId}/org-chart/import

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

directoryId, string uuid required

ID of the directory

Request body multipart/form-data

ImportPrincipalsRequest required
file, string binary required

The canonical CSV file (UTF-8, comma-separated, RFC 4180 quoting)

dry_run, boolean

Validate the file and return the report without applying anything — no principals created, updated, or made inactive. Defaults to true; pass false to apply the import.

Response

Import report — counts, warnings, and per-row errors

KongImportReport required

Result of an import run.

counts, object required
warnings, KongImportWarning[] required

The run succeeded, but a human should look at these rows.

errors, KongImportRowError[] required

Changes