---
title: "POST /api/v1/products/{product_name}"
method: POST
path: "/api/v1/products/{product_name}"
tags: ["Product"]
---

# POST /api/v1/products/{product_name}

`POST /api/v1/products/{product_name}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `product_name` string, required

## Request body

- ApiProductV1SaveProductRequest
  - `product_name` string: The name of the product to save
  - `git` ApiProductV1Git
    - `gitlab` ApiProductV1Gitlab
      - `name` string: The name of the Gitlab repository
      - `path` string: The path of the Gitlab repository
      - `visibility` string: The visibility of the Gitlab repository, which can only be "public" or "private"
      - `description` string: The description of the Gitlab repository
    - `github` ApiProductV1Github
      - `name` string: The name of the Github repository
      - `path` string: The path of the Github repository
      - `visibility` string: The visibility of the Github repository, which can only be "public" or "private"
      - `description` string: The description of the Github repository

## Response `200`

OK

- ApiProductV1SaveProductReply
  - `message` string: The message returned after saving the product

## Changes

- **2023-12-21** `58206cc16454`: 2 breaking, 2 warning
  - added `#/components/schemas/api.product.v1.Git` to the `git` request property `allOf` list
  - the `git` request property type changed from `object` to no type
  - removed the request property `git/github`
  - removed the request property `git/gitlab`
- **2023-08-08** `9c89db0ede4e`: 1 breaking, 1 warning, 2 info
  - the `git` request property type changed from no type to `object`
  - removed `#/components/schemas/api.product.v1.Git` from the `git` request property `allOf` list
  - added the new optional request property `git/github`
  - added the new optional request property `git/gitlab`

[Operation history](https://skmtc.dev/nautes-labs/apis/nautes-api/changes/api/v1/products/:product_name/post.md)

---

[API](https://skmtc.dev/nautes-labs/apis/nautes-api.md) - [All operations](https://skmtc.dev/nautes-labs/apis/nautes-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nautes-labs/apis/nautes-api/revisions/ce38dc32cd8a?raw)
