---
type: api
title: Add parameters
description: Add one or more parameters to the Synthetics app.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-post-parameters
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-post-parameters
products:
  - Kibana
---

# Add parameters

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/synthetics/params`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#basicauth)

## Description

Add one or more parameters to the Synthetics app.
You must have `all` privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.

## Request Body

`application/json`

The request body can contain either a single parameter object or an array of parameter objects.

One of:
- **[]Synthetics_parameterRequest**
  - `description` (string) — optional
    A description of the parameter.
  - `key` (string) — required
    The key of the parameter.
  - `share_across_spaces` (boolean) — optional
    Specify whether the parameter should be shared across spaces.
  - `tags` ([] string) — optional
    An array of tags to categorize the parameter.
  - `value` (string) — required
    The value associated with the parameter.
- **Synthetics_parameterRequest**
  - `description` (string) — optional
    A description of the parameter.
  - `key` (string) — required
    The key of the parameter.
  - `share_across_spaces` (boolean) — optional
    Specify whether the parameter should be shared across spaces.
  - `tags` ([] string) — optional
    An array of tags to categorize the parameter.
  - `value` (string) — required
    The value associated with the parameter.

## Response

A successful response.

`application/json`

One of:
- **[]Synthetics_postParameterResponse**
  - `description` (string)
    A description of the parameter.
  - `id` (string)
    The unique identifier for the parameter.
  - `key` (string)
    The parameter key.
  - `share_across_spaces` (boolean)
    Indicates whether the parameter is shared across spaces.
  - `tags` ([] string)
    An array of tags associated with the parameter.
  - `value` (string)
    The value associated with the parameter.
- **Synthetics_postParameterResponse**
  - `description` (string)
    A description of the parameter.
  - `id` (string)
    The unique identifier for the parameter.
  - `key` (string)
    The parameter key.
  - `share_across_spaces` (boolean)
    Indicates whether the parameter is shared across spaces.
  - `tags` ([] string)
    An array of tags associated with the parameter.
  - `value` (string)
    The value associated with the parameter.
## Code Examples

#### Console

```console
POST /api/synthetics/params
{
  "key": "your-key-name",
  "value": "your-parameter-value",
  "description": "Param to use in browser monitor",
  "tags": ["authentication", "security"],
  "share_across_spaces": true
}
```

#### curl

```curl
curl -X POST "https://{kibana_url}/api/synthetics/params" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "your-key-name",
  "value": "your-parameter-value",
  "description": "Param to use in browser monitor",
  "tags": ["authentication", "security"],
  "share_across_spaces": true
}'
```

## Response Examples

#### Single parameter

A successful response for a single added parameter.

```json
{
  "id": "unique-parameter-id",
  "key": "your-key-name",
  "value": "your-param-value",
  "description": "Param to use in browser monitor",
  "tags": ["authentication", "security"],
  "share_across_spaces": true
}
```

#### Multiple parameters

A successful response for multiple added parameters.

```json
[
  {
    "id": "param1-id",
    "key": "param1",
    "value": "value1"
  },
  {
    "id": "param2-id",
    "key": "param2",
    "value": "value2"
  }
]
```

