---
title: "Add a bundle of certificates to an environment's truststore"
method: POST
path: "/apiops/projects/{projectName}/certificates/truststore/{environmentName}/import-file/"
tags: ["ApiProxy"]
---

# Add a bundle of certificates to an environment's truststore

`POST /apiops/projects/{projectName}/certificates/truststore/{environmentName}/import-file/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/certificates/truststore/{environmentName}/import-file/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/certificates/truststore/:environmentName/import-file/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads a ZIP of certificate files (or a single one) and registers each as a Certificate in this project for the given environment, which is what makes that environment trust them. Each entry's file name becomes the certificate name and alias. Entries that already exist under the same name are replaced for that environment; their other environments are untouched.

## Path parameters

- `projectName` string, required
- `environmentName` string, required

## Query parameters

- `namePrefix` string

## Request body `multipart/form-data`

- object
  - `truststoreFile` string, binary, required: Certificate bundle (ZIP) or a single certificate file

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `400`: bad request!
- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/certificates/truststore/:environmentName/import-file/post.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
