---
title: "POST config"
method: POST
path: "/configs"
tags: ["Configs"]
---

# POST config

`POST /configs`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/configs`
- Auth: HTTP bearer

Create a new config row. Only store override keys — never the full merged blob.

## Request body

- ConfigPost
  - `config` object, required: Override keys to store. Never the full merged blob.
  - `ref_id` integer: ID for the ref_type. Use 0 for global.
  - `ref_type` string, required: Scope: 'global', 'branch', or 'user'

## Response `201`

- ConfigRowResponse
  - `config` object: Stored override keys.
  - `config_id` integer: Unique identifier for this config row.
  - `created_at` string, date-time: Creation timestamp.
  - `created_by` integer: user_id of the creator.
  - `ref_id` integer: ID for the ref_type.
  - `ref_type` string: Scope: 'global', 'branch', or 'user'
  - `updated_at` string, date-time, nullable: Last update timestamp.
  - `updated_by` integer, nullable: user_id of the last updater.

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden.
- `409`: Config already exists for this ref_type/ref_id.

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
