---
title: "POST /api/v1/pki/collections/{collectionId}/items"
method: POST
path: "/api/v1/pki/collections/{collectionId}/items"
tags: ["PKI Certificate Collections"]
---

# POST /api/v1/pki/collections/{collectionId}/items

`POST /api/v1/pki/collections/{collectionId}/items`

Add item to PKI collection

## Path parameters

- `collectionId` string, required

## Request body

- object
  - `type` 'certificate' | 'ca', required — The type of the PKI collection item to add.
  - `itemId` string, required — The resource ID of the PKI collection item to add.

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `pkiCollectionId` string, uuid, required
  - `type` 'certificate' | 'ca', required — The type of the PKI collection item to add.
  - `itemId` string, required — The resource ID of the PKI collection item to add.

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/885aef3e6c11/schema)
