---
title: "Create a new code version"
method: POST
path: "/api/v1/etl-jobs/{id}/versions"
tags: ["ETL Jobs"]
---

# Create a new code version

`POST /api/v1/etl-jobs/{id}/versions`

## Request

- Base URL: `https://dev.noveum.ai`
- URL: `https://dev.noveum.ai/api/v1/etl-jobs/{id}/versions`
- Auth: API key in cookie `apiKeyCookie` and HTTP bearer

Create a new code version

## Path parameters

- `id` string, required: ETL job ID

## Query parameters

- `organizationId` string
- `organizationSlug` string
- `projectId` string
- `environment` string

## Request body

- object
  - `code` string, required
  - `description` string
  - `source` 'manual' | 'ai_generated' | 'ai_improved'

## Response `200`

Success

- object

## Other responses

- `201`: Returns the created code version
- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: ETL job not found
- `409`: Conflict
- `422`: Unprocessable entity
- `500`: Internal server error

---

[API](https://skmtc.dev/noveum/apis/noveum-api.md) · [All operations](https://skmtc.dev/noveum/apis/noveum-api/llms.txt) · [OpenAPI document](https://skmtc.dev/noveum/apis/noveum-api/revisions/1745e27f38d0?raw)
