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

# Create Config

`POST /config/{path}`

Create Api lets you upload configuration file in the repository.
Configuraion file gets stored in annex store if one of the below condition statisfies else gets 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

## Headers

- `Content-Type` string, required

## Response `201`

Created

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

## Other responses

- `400` — Bad Request
- `409` — Conflict

## Changes

- **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/46dfcb383ba3/schema)
