---
title: "Changes to Create an environment variable"
method: POST
path: "/v1/variables"
---

# Changes to Create an environment variable

`POST /v1/variables`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 4 revisions.

- **2026-08-12** `87d29dc7b4fe` — 3 breaking, 2 warning, 15 info

## Changes

- **2026-08-12** `87d29dc7b4fe` — 3 breaking, 2 warning, 15 info
  - request body became required
  - for the `header` request parameter `x-checkly-account`, the type/format was changed from `string`/`` to `string`/`uuid`
  - the `key` request property's minLength was increased from `0` to `1`
  - removed the optional property `attributes` from the response with the `401` status
  - removed the optional property `attributes` from the response with the `429` status
  - added the non-success response with the status `400`
  - added the non-success response with the status `409`
  - the response property `locked` became required for the status `201`
  - the response property `message` became required for the status `401`
  - the response property `message` became required for the status `403`
  - the response property `message` became required for the status `429`
  - the response property `secret` became required for the status `201`
  - the `locked` response's property default value `false` was removed for the status `201`
  - the `secret` response's property default value `false` was removed for the status `201`
  - removed the `401.00` enum value from the `statusCode` response property for the response status `401`
  - removed the `403.00` enum value from the `statusCode` response property for the response status `403`
  - removed the `429.00` enum value from the `statusCode` response property for the response status `429`
  - removed the `Forbidden` enum value from the `error` response property for the response status `403`
  - removed the `Too Many Requests` enum value from the `error` response property for the response status `429`
  - removed the `Unauthorized` enum value from the `error` response property for the response status `401`

---

[Operation](https://skmtc.dev/checklyhq/apis/checkly-public-api/docs/v1/variables/post.md) · [API](https://skmtc.dev/checklyhq/apis/checkly-public-api.md) · [Page](https://skmtc.dev/checklyhq/apis/checkly-public-api/changes/v1/variables/post)
