# Export selected entities

Export a subset of the tenant configuration as a ZIP archive. For each entity type in the request body, "sync" exports every current item of that type and "selective" exports only the listed ids; an omitted entity type is not touched at all. This endpoint always returns a ZIP and takes no query parameters; a request carrying any is rejected.

Endpoint: POST /version/export/{tenantId}
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `tenantId` (string, required)
    Tenant ID specifying the environment from which the configuration is exported

## Request body:

  - `application/json` (unknown)
    Per-entity-type export selection (mode + ids)

## Request fields (application/json):

  - `entities` (object, required)

  - `entities.journeys` (object)

  - `entities.journeys.mode` (string, required)
    "sync" exports every current item of this type; "selective" exports only the items listed in `ids`.
    Enum: "sync", "selective"

  - `entities.journeys.ids` (array)
    Required (non-empty, max 25 items) when mode is "selective". Must be omitted when mode is "sync".

## Response 200:

  - `200` (unknown)
    Export completed. Returns a ZIP archive of the exported tenant configuration, scoped to the requested entity selection.

## Response 200 headers (application/zip):

  - `Content-Disposition` (string)
    Attachment header carrying the archive filename, for example: attachment; filename="transmit-security-export.zip"

## Response 400:

  - `400` (unknown)
    Error: Bad Request

## Response 401:

  - `401` (unknown)
    Error: Unauthorized

## Response 404:

  - `404` (unknown)
    Error: Not Found — the route did not match, typically because tenantId is missing from the path.

## Response 500:

  - `500` (unknown)
    Error: Internal Server Error

