---
title: "POST /devops/services/{extension_id}/environments/{environment_id}/variables"
method: POST
path: "/devops/services/{extension_id}/environments/{environment_id}/variables"
tags: ["DevOps"]
---

# POST /devops/services/{extension_id}/environments/{environment_id}/variables

`POST /devops/services/{extension_id}/environments/{environment_id}/variables`

Creates a new Variable for a given `extension_id` and
an `environment_id`.

## Path parameters

- `extension_id` string, required
- `environment_id` string, required

## Request body

- EaasVariable — Variable. `id` -- Only present on representation `name` -- Name of the Variable. Must match `^[A-Za-z](?:[A-Za-z0-9_\-.]+)*$`. Can be set only on creation. `value` -- Variable value. Cannot be empty. `secure` -- Boolean. Indicate if this Variable contains sensitive data. `events` -- Only present on representation
  - `id` string
  - `name` string
  - `value` string, required
  - `secure` boolean
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string

## Response `201`

- EaasVariable — Variable. `id` -- Only present on representation `name` -- Name of the Variable. Must match `^[A-Za-z](?:[A-Za-z0-9_\-.]+)*$`. Can be set only on creation. `value` -- Variable value. Cannot be empty. `secure` -- Boolean. Indicate if this Variable contains sensitive data. `events` -- Only present on representation
  - `id` string
  - `name` string
  - `value` string, required
  - `secure` boolean
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string

## Other responses

- `400`

---

[API](https://skmtc.dev/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.dev/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/revisions/0421d2a97c52/schema)
