---
title: "Create Config"
method: POST
path: "/config/{path}"
tags: ["Configuration Service"]
---

# Create Config

`POST /config/{path}`

Uploads configuration file in the repository.
Configuraion file is stored in annex store if one of the below condition statisfies else stored in normal store :
1. Annex flag is true
2. File size exceeds the maximum size configured in Configuration service.

## Path parameters

- `path` string, required

## Query parameters

- `comment` string, required
- `annex` boolean

## Response `201`

Created

- ConfigId
  - `id` string — Revision number of configuration file.

## Other responses

- `400` — Bad Request
- `401` — The supplied authentication is invalid
- `403` — The supplied authentication is not authorized to access this resource
- `409` — Conflict

## Changes

- **2019-01-30** `be3545d74098` — 1 breaking, 1 warning, 4 info
  - added required request body
  - deleted the `header` request parameter `Content-Type`
  - the endpoint scheme security `Bearer` was added to the API
  - added the media type `application/json` for the response with the status `201`
  - …2 more
- **2017-06-07** `46dfcb383ba3` — 3 breaking, 3 info
  - added the new required `header` request parameter `Content-Type`
  - removed the request body
  - removed the media type `application/json` for the response with the status `201`
  - the endpoint scheme security `Bearer` was removed from the API
  - …2 more

[Change history](https://skmtc.dev/tmtsoftware/apis/tmt-common-software-rest-endpoints/changes/config/:path/post.md)

---

[API](https://skmtc.dev/tmtsoftware/apis/tmt-common-software-rest-endpoints.md) · [All operations](https://skmtc.dev/tmtsoftware/apis/tmt-common-software-rest-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tmtsoftware/tmt-common-software-rest-endpoints/revisions/4647870f035d/schema)
