---
title: "POST /v2/events/save"
method: POST
path: "/v2/events/save"
---

# POST /v2/events/save

`POST /v2/events/save`

Save event data

## Request body

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

## Response `200`

Successfully saved event data

- object
  - `id` number
  - `name` string
  - `data` object
  - `slug` string
  - `locks` string[]

## Other responses

- `400` — Invalid input received. Bad request.
- `500` — Unable to fullfil request due to internal server error.

## Changes

- **2024-05-16** `0444aeefa1e8` — 1 breaking
  - the request property `checkoutConfig/config/locks` became required
- **2023-11-03** `b77bfb068867` — 1 breaking, 2 warning, 4 info
  - removed the success response with the status `201`
  - removed the request property `status`
  - removed the request property `transactionHash`
  - added the new optional request property `id`
  - …3 more

[Change history](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/changes/v2/events/save/post.md)

---

[API](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith.md) · [All operations](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/llms.txt) · [OpenAPI document](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/revisions/07107231d66b?raw)
