---
title: "Update"
method: POST
path: "/keys/{key}/configs/{config}"
tags: ["Configs"]
---

# Update

`POST /keys/{key}/configs/{config}`

## Request

- Base URL: `https://api.addresszen.com/v1`
- URL: `https://api.addresszen.com/v1/keys/{key}/configs/{config}`
- Auth: HTTP bearer

Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.

## Path parameters

- `key` string, required
- `config` string, required

## Query parameters

- `user_token` string

## Request body

- ConfigUpdateParam: Config object update parameters
  - `payload` string: A serialized payload of up to `65536` characters

## Response `200`

Success

- ConfigResponse
  - `result` Config, required
    - `updatedAt` string, required: Timestamp for when the config was created
    - `createdAt` string, required: Timestamp for when the config was updated
    - `name` string, required: A unique name to identify the configuration payload
    - `payload` string, required: A serialised payload of up to `65536` characters
  - `code` 2000, required
  - `message` 'Success', required

## Other responses

- `404`: Not Found
- `default`: Error

---

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