# Adding a New Version of a Certificate via API

## Overview

To replicate the "Add New Version" feature seen in the UI through the API, you must create a new certificate version linked to a previous certificate.

## How to Create a New Version

1. Include the `previous_certificate_id` in the FormData when creating a new certificate.
2. The system verifies that the API key owner matches the owner of the previous certificate.
3. If verified, a new certificate is created with an incremented version number.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scoredetect.com/api/scoredetect-api/adding-a-new-version-of-a-certificate-via-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
