---
title: "PUT /v2/checkout/{id}"
method: PUT
path: "/v2/checkout/{id}"
---

# PUT /v2/checkout/{id}

`PUT /v2/checkout/{id}`

A new checkout config is created or updated if it already exists

## Path parameters

- `id` string, nullable, required

## Request body

- object
  - `name` string, required
  - `config` object, required

## Response `200`

Checkout config for the updated id.

- CheckoutConfig
  - `id` string
  - `name` string, required
  - `by` string
  - `config` object, required
    - `locks` object, required
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `401` — User is not authenticated.

---

[API](https://skmtc.net/unlock-protocol/apis/unlock-locksmith.md) · [All operations](https://skmtc.net/unlock-protocol/apis/unlock-locksmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unlock-protocol/unlock-locksmith/versions/e003b998de45/schema)
