> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# launchdarkly-experiments

> LaunchDarkly Experiments — manage experiments, holdouts, and metrics

**Server path:** `/launchdarkly-experiments` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                              | Description                     |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [`launchdarkly_experiments_create_experiment`](#launchdarkly_experiments_create_experiment)                       | Create experiment               |
| [`launchdarkly_experiments_create_metric_group`](#launchdarkly_experiments_create_metric_group)                   | Create metric group             |
| [`launchdarkly_experiments_delete_metric`](#launchdarkly_experiments_delete_metric)                               | Delete metric                   |
| [`launchdarkly_experiments_delete_metric_group`](#launchdarkly_experiments_delete_metric_group)                   | Delete metric group             |
| [`launchdarkly_experiments_get_all_holdouts`](#launchdarkly_experiments_get_all_holdouts)                         | Get all holdouts                |
| [`launchdarkly_experiments_get_any_env`](#launchdarkly_experiments_get_any_env)                                   | Get experiments any environment |
| [`launchdarkly_experiments_get_experiment`](#launchdarkly_experiments_get_experiment)                             | Get experiment                  |
| [`launchdarkly_experiments_get_experimentation_settings`](#launchdarkly_experiments_get_experimentation_settings) | Get experimentation settings    |
| [`launchdarkly_experiments_get_experiments`](#launchdarkly_experiments_get_experiments)                           | Get experiments                 |
| [`launchdarkly_experiments_get_holdout`](#launchdarkly_experiments_get_holdout)                                   | Get holdout                     |
| [`launchdarkly_experiments_get_holdout_by_id`](#launchdarkly_experiments_get_holdout_by_id)                       | Get Holdout by Id               |
| [`launchdarkly_experiments_get_metric`](#launchdarkly_experiments_get_metric)                                     | Get metric                      |
| [`launchdarkly_experiments_get_metric_group`](#launchdarkly_experiments_get_metric_group)                         | Get metric group                |
| [`launchdarkly_experiments_get_metric_groups`](#launchdarkly_experiments_get_metric_groups)                       | List metric groups              |
| [`launchdarkly_experiments_get_metrics`](#launchdarkly_experiments_get_metrics)                                   | List metrics                    |
| [`launchdarkly_experiments_patch_experiment`](#launchdarkly_experiments_patch_experiment)                         | Patch experiment                |
| [`launchdarkly_experiments_patch_holdout`](#launchdarkly_experiments_patch_holdout)                               | Patch holdout                   |
| [`launchdarkly_experiments_patch_metric`](#launchdarkly_experiments_patch_metric)                                 | Update metric                   |
| [`launchdarkly_experiments_patch_metric_group`](#launchdarkly_experiments_patch_metric_group)                     | Patch metric group              |
| [`launchdarkly_experiments_post_holdout`](#launchdarkly_experiments_post_holdout)                                 | Create holdout                  |
| [`launchdarkly_experiments_post_metric`](#launchdarkly_experiments_post_metric)                                   | Create metric                   |
| [`launchdarkly_experiments_put_experimentation_settings`](#launchdarkly_experiments_put_experimentation_settings) | Update experimentation settings |

***

## launchdarkly\_experiments\_create\_experiment

Create experiment

**Parameters:**

| Parameter        | Type      | Required | Default | Description                                                                                          |
| ---------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                                                                                      |
| `environmentKey` | string    | Yes      | —       | The environment key                                                                                  |
| `analysisConfig` | object    | No       | —       | Analysis Config                                                                                      |
| `dataSource`     | string    | No       | —       | The source of metric data in order to analyze results. Defaults to "launchdarkly" when not provided. |
| `description`    | string    | No       | —       | The experiment description                                                                           |
| `holdoutId`      | string    | No       | —       | The ID of the holdout                                                                                |
| `iteration`      | object    | Yes      | —       | The iteration value                                                                                  |
| `key`            | string    | Yes      | —       | The experiment key                                                                                   |
| `maintainerId`   | string    | No       | —       | The ID of the member who maintains this experiment                                                   |
| `methodology`    | string    | No       | —       | The results analysis approach.                                                                       |
| `name`           | string    | Yes      | —       | The experiment name                                                                                  |
| `tags`           | string\[] | No       | —       | Tags for the experiment                                                                              |
| `type`           | string    | No       | —       | The type of experiment.                                                                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "analysisConfig": {
        "type": "object",
        "description": "Analysis Config",
        "properties": {
          "bayesianThreshold": {
            "type": "string",
            "description": "The threshold for the Probability to Beat Baseline (PBBL) and Probability to Be Best (PBB) comparisons for the Bayesian results analysis approach."
          },
          "significanceThreshold": {
            "type": "string",
            "description": "The significance threshold for the frequentist results analysis approach."
          },
          "testDirection": {
            "type": "string",
            "description": "The test sided direction for the frequentist results analysis approach."
          },
          "multipleComparisonCorrectionMethod": {
            "type": "string",
            "description": "The method to use for multiple comparison correction.",
            "enum": [
              "bonferroni",
              "benjamini-hochberg"
            ]
          },
          "multipleComparisonCorrectionScope": {
            "type": "string",
            "description": "The scope of the multiple comparison correction.",
            "enum": [
              "variations",
              "variations-and-metrics",
              "metrics"
            ]
          },
          "sequentialTestingEnabled": {
            "type": "boolean",
            "description": "Whether sequential testing is enabled for Frequentist analysis"
          }
        }
      },
      "dataSource": {
        "type": "string",
        "description": "The source of metric data in order to analyze results. Defaults to \"launchdarkly\" when not provided.",
        "enum": [
          "launchdarkly",
          "snowflake"
        ]
      },
      "description": {
        "type": "string",
        "description": "The experiment description"
      },
      "holdoutId": {
        "type": "string",
        "description": "The ID of the holdout"
      },
      "iteration": {
        "type": "object",
        "description": "The iteration value",
        "properties": {
          "hypothesis": {
            "type": "string",
            "description": "The expected outcome of this experiment"
          },
          "canReshuffleTraffic": {
            "type": "boolean",
            "description": "Whether to allow the experiment to reassign traffic to different variations when you increase or decrease the traffic in your experiment audience (true) or keep all traffic assigned to its initial variation (false). Defaults to true."
          },
          "metrics": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The metrics value"
          },
          "primarySingleMetricKey": {
            "type": "string",
            "description": "The key of the primary metric for this experiment. Either <code>primarySingleMetricKey</code> or <code>primaryFunnelKey</code> must be present."
          },
          "primaryFunnelKey": {
            "type": "string",
            "description": "The key of the primary funnel group for this experiment. Either <code>primarySingleMetricKey</code> or <code>primaryFunnelKey</code> must be present."
          },
          "treatments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The treatments value"
          },
          "flags": {
            "type": "object",
            "description": "The flags value"
          },
          "randomizationUnit": {
            "type": "string",
            "description": "The unit of randomization for this iteration. Defaults to user."
          },
          "reallocationFrequencyMillis": {
            "type": "integer",
            "description": "The cadence (in milliseconds) to update the allocation."
          },
          "covariateId": {
            "type": "string",
            "description": "The ID of the covariate CSV"
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The attributes that this iteration's results can be sliced by"
          }
        },
        "required": [
          "hypothesis",
          "metrics",
          "treatments",
          "flags"
        ]
      },
      "key": {
        "type": "string",
        "description": "The experiment key"
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this experiment"
      },
      "methodology": {
        "type": "string",
        "description": "The results analysis approach.",
        "enum": [
          "bayesian",
          "frequentist",
          "export_only"
        ]
      },
      "name": {
        "type": "string",
        "description": "The experiment name"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Tags for the experiment"
      },
      "type": {
        "type": "string",
        "description": "The type of experiment.",
        "enum": [
          "experiment",
          "mab",
          "holdout"
        ]
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "iteration",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_create\_metric\_group

Create metric group

**Parameters:**

| Parameter      | Type      | Required | Default | Description                                          |
| -------------- | --------- | -------- | ------- | ---------------------------------------------------- |
| `projectKey`   | string    | Yes      | —       | The project key                                      |
| `description`  | string    | No       | —       | Description of the metric group                      |
| `key`          | string    | No       | —       | A unique key to reference the metric group           |
| `kind`         | string    | Yes      | —       | The type of the metric group                         |
| `maintainerId` | string    | Yes      | —       | The ID of the member who maintains this metric group |
| `metrics`      | object\[] | Yes      | —       | An ordered list of the metrics in this metric group  |
| `name`         | string    | Yes      | —       | A human-friendly name for the metric group           |
| `tags`         | string\[] | Yes      | —       | Tags for the metric group                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "description": {
        "type": "string",
        "description": "Description of the metric group"
      },
      "key": {
        "type": "string",
        "description": "A unique key to reference the metric group"
      },
      "kind": {
        "type": "string",
        "description": "The type of the metric group",
        "enum": [
          "funnel",
          "standard"
        ]
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this metric group"
      },
      "metrics": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The metric key"
            },
            "nameInGroup": {
              "type": "string",
              "description": "Name of the metric when used within the associated metric group. Can be different from the original name of the metric"
            }
          },
          "required": [
            "key",
            "nameInGroup"
          ]
        },
        "description": "An ordered list of the metrics in this metric group"
      },
      "name": {
        "type": "string",
        "description": "A human-friendly name for the metric group"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Tags for the metric group"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "kind",
      "maintainerId",
      "metrics",
      "name",
      "tags"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_delete\_metric

Delete metric

**Parameters:**

| Parameter    | Type   | Required | Default | Description     |
| ------------ | ------ | -------- | ------- | --------------- |
| `projectKey` | string | Yes      | —       | The project key |
| `metricKey`  | string | Yes      | —       | The metric key  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricKey": {
        "type": "string",
        "description": "The metric key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_delete\_metric\_group

Delete metric group

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `metricGroupKey` | string | Yes      | —       | The metric group key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricGroupKey": {
        "type": "string",
        "description": "The metric group key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricGroupKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_all\_holdouts

Get all holdouts

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                                                                                                          |
| ---------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `projectKey`     | string  | Yes      | —       | The project key                                                                                                                                                                      |
| `environmentKey` | string  | Yes      | —       | The environment key                                                                                                                                                                  |
| `limit`          | integer | No       | —       | The number of holdouts to return in the response. Defaults to 20                                                                                                                     |
| `offset`         | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an `offset` of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "limit": {
        "type": "integer",
        "description": "The number of holdouts to return in the response. Defaults to 20"
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an `offset` of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_any\_env

Get experiments any environment

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                                                                                                        |
| ---------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string  | Yes      | —       | The project key                                                                                                                                                                    |
| `limit`          | integer | No       | —       | The maximum number of experiments to return. Defaults to 20.                                                                                                                       |
| `offset`         | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |
| `filter`         | string  | No       | —       | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above.                                                                 |
| `expand`         | string  | No       | —       | A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.                                                 |
| `lifecycleState` | string  | No       | —       | A comma-separated list of experiment archived states. Supports `archived`, `active`, or both. Defaults to `active` experiments.                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "limit": {
        "type": "integer",
        "description": "The maximum number of experiments to return. Defaults to 20."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      },
      "filter": {
        "type": "string",
        "description": "A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above."
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above."
      },
      "lifecycleState": {
        "type": "string",
        "description": "A comma-separated list of experiment archived states. Supports `archived`, `active`, or both. Defaults to `active` experiments."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_experiment

Get experiment

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                                                        |
| ---------------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                                                                    |
| `environmentKey` | string | Yes      | —       | The environment key                                                                                                                |
| `experimentKey`  | string | Yes      | —       | The experiment key                                                                                                                 |
| `expand`         | string | No       | —       | A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "experimentKey": {
        "type": "string",
        "description": "The experiment key"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "experimentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_experimentation\_settings

Get experimentation settings

**Parameters:**

| Parameter    | Type   | Required | Default | Description     |
| ------------ | ------ | -------- | ------- | --------------- |
| `projectKey` | string | Yes      | —       | The project key |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_experiments

Get experiments

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                                                                                                        |
| ---------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string  | Yes      | —       | The project key                                                                                                                                                                    |
| `environmentKey` | string  | Yes      | —       | The environment key                                                                                                                                                                |
| `limit`          | integer | No       | —       | The maximum number of experiments to return. Defaults to 20.                                                                                                                       |
| `offset`         | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. |
| `filter`         | string  | No       | —       | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above.                                                                 |
| `expand`         | string  | No       | —       | A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.                                                 |
| `lifecycleState` | string  | No       | —       | A comma-separated list of experiment archived states. Supports `archived`, `active`, or both. Defaults to `active` experiments.                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "limit": {
        "type": "integer",
        "description": "The maximum number of experiments to return. Defaults to 20."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`."
      },
      "filter": {
        "type": "string",
        "description": "A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above."
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above."
      },
      "lifecycleState": {
        "type": "string",
        "description": "A comma-separated list of experiment archived states. Supports `archived`, `active`, or both. Defaults to `active` experiments."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_holdout

Get holdout

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                                                                                                                                                                         |
| ---------------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                                                                                                                                                                                     |
| `environmentKey` | string | Yes      | —       | The environment key                                                                                                                                                                                                                                 |
| `holdoutKey`     | string | Yes      | —       | The holdout experiment key                                                                                                                                                                                                                          |
| `expand`         | string | No       | —       | A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above. Holdout experiment expansion fields have no prefix. Related experiment expansion fields have `rel-` as a prefix. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "holdoutKey": {
        "type": "string",
        "description": "The holdout experiment key"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above. Holdout experiment expansion fields have no prefix. Related experiment expansion fields have `rel-` as a prefix."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "holdoutKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_holdout\_by\_id

Get Holdout by Id

**Parameters:**

| Parameter        | Type   | Required | Default | Description               |
| ---------------- | ------ | -------- | ------- | ------------------------- |
| `projectKey`     | string | Yes      | —       | The project key           |
| `environmentKey` | string | Yes      | —       | The environment key       |
| `holdoutId`      | string | Yes      | —       | The holdout experiment ID |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "holdoutId": {
        "type": "string",
        "description": "The holdout experiment ID"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "holdoutId"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_metric

Get metric

**Parameters:**

| Parameter    | Type   | Required | Default | Description                                                                                                                                                                                                                                                                                               |
| ------------ | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string | Yes      | —       | The project key                                                                                                                                                                                                                                                                                           |
| `metricKey`  | string | Yes      | —       | The metric key                                                                                                                                                                                                                                                                                            |
| `expand`     | string | No       | —       | A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. |
| `versionId`  | string | No       | —       | The specific version ID of the metric                                                                                                                                                                                                                                                                     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricKey": {
        "type": "string",
        "description": "The metric key"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`."
      },
      "versionId": {
        "type": "string",
        "description": "The specific version ID of the metric"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_metric\_group

Get metric group

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                  |
| ---------------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                              |
| `metricGroupKey` | string | Yes      | —       | The metric group key                                                                         |
| `expand`         | string | No       | —       | A comma-separated list of properties that can reveal additional information in the response. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricGroupKey": {
        "type": "string",
        "description": "The metric group key"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricGroupKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_metric\_groups

List metric groups

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                                     |
| ------------ | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | The project key                                                                                                                                                                                 |
| `filter`     | string  | No       | —       | Accepts filter by `experimentStatus`, `query`, `kind`, `hasConnections`, `maintainerIds`, and `maintainerTeamKey`. Example: `filter=experimentStatus equals 'running' and query equals 'test'`. |
| `sort`       | string  | No       | —       | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields.                  |
| `expand`     | string  | No       | —       | This parameter is reserved for future use and is not currently supported on this endpoint.                                                                                                      |
| `limit`      | integer | No       | —       | The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50.                                                                                                     |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.                                                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "filter": {
        "type": "string",
        "description": "Accepts filter by `experimentStatus`, `query`, `kind`, `hasConnections`, `maintainerIds`, and `maintainerTeamKey`. Example: `filter=experimentStatus equals 'running' and query equals 'test'`."
      },
      "sort": {
        "type": "string",
        "description": "A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields."
      },
      "expand": {
        "type": "string",
        "description": "This parameter is reserved for future use and is not currently supported on this endpoint."
      },
      "limit": {
        "type": "integer",
        "description": "The number of metric groups to return in the response. Defaults to 20. Maximum limit is 50."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_get\_metrics

List metrics

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                 |
| ------------ | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | The project key                                                                                                                                                                                                                                                                                                                                             |
| `expand`     | string  | No       | —       | A comma-separated list of properties that can reveal additional information in the response.                                                                                                                                                                                                                                                                |
| `limit`      | integer | No       | —       | The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.                                                                                                                                                                                                                                                                       |
| `offset`     | integer | No       | —       | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items.                                                                                                                                                                                                            |
| `sort`       | string  | No       | —       | A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`.                                                                                                                                                                                                            |
| `filter`     | string  | No       | —       | A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, `eventKind`, `isNumeric`, `unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, `metricUsedIn`, `eventKeys`, and `versionIds`. To learn more about the filter syntax, read the 'Filtering metrics' section above. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of properties that can reveal additional information in the response."
      },
      "limit": {
        "type": "integer",
        "description": "The number of metrics to return in the response. Defaults to 20. Maximum limit is 50."
      },
      "offset": {
        "type": "integer",
        "description": "Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items."
      },
      "sort": {
        "type": "string",
        "description": "A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`."
      },
      "filter": {
        "type": "string",
        "description": "A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, `eventKind`, `isNumeric`, `unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, `metricUsedIn`, `eventKeys`, and `versionIds`. To learn more about the filter syntax, read the 'Filtering metrics' section above."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_patch\_experiment

Patch experiment

**Parameters:**

| Parameter        | Type      | Required | Default | Description                            |
| ---------------- | --------- | -------- | ------- | -------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                        |
| `environmentKey` | string    | Yes      | —       | The environment key                    |
| `experimentKey`  | string    | Yes      | —       | The experiment key                     |
| `comment`        | string    | No       | —       | Optional comment describing the update |
| `instructions`   | object\[] | Yes      | —       | The instructions value                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "experimentKey": {
        "type": "string",
        "description": "The experiment key"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the update"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "experimentKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_patch\_holdout

Patch holdout

**Parameters:**

| Parameter        | Type      | Required | Default | Description                            |
| ---------------- | --------- | -------- | ------- | -------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                        |
| `environmentKey` | string    | Yes      | —       | The environment key                    |
| `holdoutKey`     | string    | Yes      | —       | The holdout key                        |
| `comment`        | string    | No       | —       | Optional comment describing the update |
| `instructions`   | object\[] | Yes      | —       | The instructions value                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "holdoutKey": {
        "type": "string",
        "description": "The holdout key"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the update"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "holdoutKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_patch\_metric

Update metric

**Parameters:**

| Parameter    | Type      | Required | Default | Description     |
| ------------ | --------- | -------- | ------- | --------------- |
| `projectKey` | string    | Yes      | —       | The project key |
| `metricKey`  | string    | Yes      | —       | The metric key  |
| `body`       | object\[] | Yes      | —       | Request body    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricKey": {
        "type": "string",
        "description": "The metric key"
      },
      "body": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "description": "The type of operation to perform"
            },
            "path": {
              "type": "string",
              "description": "A JSON Pointer string specifying the part of the document to operate on"
            },
            "value": {
              "description": "A JSON value used in \"add\", \"replace\", and \"test\" operations"
            }
          },
          "required": [
            "op",
            "path"
          ]
        },
        "description": "Request body"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricKey",
      "body"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_patch\_metric\_group

Patch metric group

**Parameters:**

| Parameter        | Type      | Required | Default | Description          |
| ---------------- | --------- | -------- | ------- | -------------------- |
| `projectKey`     | string    | Yes      | —       | The project key      |
| `metricGroupKey` | string    | Yes      | —       | The metric group key |
| `body`           | object\[] | Yes      | —       | Request body         |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "metricGroupKey": {
        "type": "string",
        "description": "The metric group key"
      },
      "body": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "description": "The type of operation to perform"
            },
            "path": {
              "type": "string",
              "description": "A JSON Pointer string specifying the part of the document to operate on"
            },
            "value": {
              "description": "A JSON value used in \"add\", \"replace\", and \"test\" operations"
            }
          },
          "required": [
            "op",
            "path"
          ]
        },
        "description": "Request body"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "metricGroupKey",
      "body"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_post\_holdout

Create holdout

**Parameters:**

| Parameter             | Type      | Required | Default | Description                                                          |
| --------------------- | --------- | -------- | ------- | -------------------------------------------------------------------- |
| `projectKey`          | string    | Yes      | —       | The project key                                                      |
| `environmentKey`      | string    | Yes      | —       | The environment key                                                  |
| `attributes`          | string\[] | No       | —       | The attributes that the holdout iteration's results can be sliced by |
| `description`         | string    | No       | —       | Description of the holdout                                           |
| `holdoutamount`       | string    | No       | —       | Audience allocation for the holdout                                  |
| `key`                 | string    | No       | —       | A key that identifies the holdout                                    |
| `maintainerId`        | string    | No       | —       | Maintainer id                                                        |
| `metrics`             | object\[] | No       | —       | Details on the metrics for this experiment                           |
| `name`                | string    | No       | —       | A human-friendly name for the holdout                                |
| `prerequisiteflagkey` | string    | No       | —       | The key of the flag that the holdout is dependent on                 |
| `primarymetrickey`    | string    | No       | —       | The key of the primary metric for this holdout                       |
| `randomizationunit`   | string    | No       | —       | The chosen randomization unit for the holdout base experiment        |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "attributes": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The attributes that the holdout iteration's results can be sliced by"
      },
      "description": {
        "type": "string",
        "description": "Description of the holdout"
      },
      "holdoutamount": {
        "type": "string",
        "description": "Audience allocation for the holdout"
      },
      "key": {
        "type": "string",
        "description": "A key that identifies the holdout"
      },
      "maintainerId": {
        "type": "string",
        "description": "Maintainer id"
      },
      "metrics": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "The metric key"
            },
            "isGroup": {
              "type": "boolean",
              "description": "Whether this is a metric group (true) or a metric (false). Defaults to false"
            },
            "primary": {
              "type": "boolean",
              "description": "Deprecated, use <code>primarySingleMetricKey</code> and <code>primaryFunnelKey</code>. Whether this is a primary metric (true) or a secondary metric (false)"
            }
          },
          "required": [
            "key"
          ]
        },
        "description": "Details on the metrics for this experiment"
      },
      "name": {
        "type": "string",
        "description": "A human-friendly name for the holdout"
      },
      "prerequisiteflagkey": {
        "type": "string",
        "description": "The key of the flag that the holdout is dependent on"
      },
      "primarymetrickey": {
        "type": "string",
        "description": "The key of the primary metric for this holdout"
      },
      "randomizationunit": {
        "type": "string",
        "description": "The chosen randomization unit for the holdout base experiment"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_post\_metric

Create metric

**Parameters:**

| Parameter             | Type      | Required | Default | Description                                                                                                                                                                                                      |
| --------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`          | string    | Yes      | —       | The project key                                                                                                                                                                                                  |
| `analysisType`        | string    | No       | —       | The method for analyzing metric events                                                                                                                                                                           |
| `dataSource`          | object    | No       | —       | Data Source                                                                                                                                                                                                      |
| `description`         | string    | No       | —       | Description of the metric                                                                                                                                                                                        |
| `eventDefault`        | object    | No       | —       | Event Default                                                                                                                                                                                                    |
| `eventKey`            | string    | No       | —       | The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only.                                                                                                        |
| `filters`             | object    | No       | —       | The filters value                                                                                                                                                                                                |
| `isNumeric`           | boolean   | No       | —       | Whether to track numeric changes in value against a baseline (\<code>true\</code>) or to track a conversion when an end user takes an action (\<code>false\</code>). Required for custom and trace metrics only. |
| `key`                 | string    | Yes      | —       | A unique key to reference the metric                                                                                                                                                                             |
| `kind`                | string    | Yes      | —       | The kind of event your metric will track                                                                                                                                                                         |
| `maintainerId`        | string    | No       | —       | The ID of the member who maintains this metric                                                                                                                                                                   |
| `name`                | string    | No       | —       | A human-friendly name for the metric                                                                                                                                                                             |
| `percentileValue`     | integer   | No       | —       | The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when \<code>analysisType\</code> is \<code>percentile\</code>.                                     |
| `randomizationUnits`  | string\[] | No       | —       | An array of randomization units allowed for this metric                                                                                                                                                          |
| `selector`            | string    | No       | —       | One or more CSS selectors. Required for click metrics only.                                                                                                                                                      |
| `successCriteria`     | string    | No       | —       | Success criteria. Required for custom and trace numeric metrics, optional for custom and trace conversion metrics.                                                                                               |
| `tags`                | string\[] | No       | —       | Tags for the metric                                                                                                                                                                                              |
| `traceQuery`          | string    | No       | —       | The trace query to use for the metric. Required for trace metrics.                                                                                                                                               |
| `traceValueLocation`  | string    | No       | —       | The location in the trace to use for numeric values. Required for numeric trace metrics.                                                                                                                         |
| `unit`                | string    | No       | —       | The unit of measure. Applicable for numeric custom and trace metrics only.                                                                                                                                       |
| `unitAggregationType` | string    | No       | —       | The method by which multiple unit event values are aggregated                                                                                                                                                    |
| `urls`                | object\[] | No       | —       | One or more target URLs. Required for click and pageview metrics only.                                                                                                                                           |
| `windowEndOffset`     | integer   | No       | —       | Not yet implemented - The end of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation                                                                               |
| `windowStartOffset`   | integer   | No       | —       | Not yet implemented - The start of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation                                                                             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "analysisType": {
        "type": "string",
        "description": "The method for analyzing metric events"
      },
      "dataSource": {
        "type": "object",
        "description": "Data Source",
        "properties": {
          "key": {
            "type": "string",
            "description": "The key value"
          },
          "environmentKey": {
            "type": "string",
            "description": "Environment Key"
          },
          "_name": {
            "type": "string",
            "description": "The name value"
          },
          "_integrationKey": {
            "type": "string",
            "description": "Integration Key"
          }
        },
        "required": [
          "key"
        ]
      },
      "description": {
        "type": "string",
        "description": "Description of the metric"
      },
      "eventDefault": {
        "type": "object",
        "description": "Event Default",
        "properties": {
          "disabled": {
            "type": "boolean",
            "description": "Whether to disable defaulting missing unit events when calculating results. Defaults to false"
          },
          "value": {
            "type": "number",
            "description": "The default value applied to missing unit events. Set to 0 when <code>disabled</code> is false. No other values are currently supported."
          }
        }
      },
      "eventKey": {
        "type": "string",
        "description": "The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only."
      },
      "filters": {
        "type": "object",
        "description": "The filters value",
        "properties": {
          "type": {
            "type": "string",
            "description": "Filter type. One of [contextAttribute, eventProperty, group]"
          },
          "attribute": {
            "type": "string",
            "description": "If not a group node, the context attribute name or event property name to filter on"
          },
          "op": {
            "type": "string",
            "description": "The op value"
          },
          "values": {
            "type": "array",
            "description": "The context attribute / event property values or group member nodes. Numeric values must not exceed 14 decimal places."
          },
          "contextKind": {
            "type": "string",
            "description": "For context attribute filters, the context kind."
          },
          "negate": {
            "type": "boolean",
            "description": "If set, then take the inverse of the operator. 'in' becomes 'not in'."
          }
        },
        "required": [
          "type",
          "op",
          "values",
          "negate"
        ]
      },
      "isNumeric": {
        "type": "boolean",
        "description": "Whether to track numeric changes in value against a baseline (<code>true</code>) or to track a conversion when an end user takes an action (<code>false</code>). Required for custom and trace metrics only."
      },
      "key": {
        "type": "string",
        "description": "A unique key to reference the metric"
      },
      "kind": {
        "type": "string",
        "description": "The kind of event your metric will track",
        "enum": [
          "pageview",
          "click",
          "custom",
          "trace"
        ]
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this metric"
      },
      "name": {
        "type": "string",
        "description": "A human-friendly name for the metric"
      },
      "percentileValue": {
        "type": "integer",
        "description": "The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when <code>analysisType</code> is <code>percentile</code>."
      },
      "randomizationUnits": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "An array of randomization units allowed for this metric"
      },
      "selector": {
        "type": "string",
        "description": "One or more CSS selectors. Required for click metrics only."
      },
      "successCriteria": {
        "type": "string",
        "description": "Success criteria. Required for custom and trace numeric metrics, optional for custom and trace conversion metrics.",
        "enum": [
          "HigherThanBaseline",
          "LowerThanBaseline"
        ]
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Tags for the metric"
      },
      "traceQuery": {
        "type": "string",
        "description": "The trace query to use for the metric. Required for trace metrics."
      },
      "traceValueLocation": {
        "type": "string",
        "description": "The location in the trace to use for numeric values. Required for numeric trace metrics."
      },
      "unit": {
        "type": "string",
        "description": "The unit of measure. Applicable for numeric custom and trace metrics only."
      },
      "unitAggregationType": {
        "type": "string",
        "description": "The method by which multiple unit event values are aggregated",
        "enum": [
          "average",
          "sum"
        ]
      },
      "urls": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "exact",
                "canonical",
                "substring",
                "regex"
              ],
              "description": "The kind value"
            },
            "url": {
              "type": "string",
              "description": "The url value"
            },
            "substring": {
              "type": "string",
              "description": "The substring value"
            },
            "pattern": {
              "type": "string",
              "description": "The pattern value"
            }
          }
        },
        "description": "One or more target URLs. Required for click and pageview metrics only."
      },
      "windowEndOffset": {
        "type": "integer",
        "description": "Not yet implemented - The end of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation"
      },
      "windowStartOffset": {
        "type": "integer",
        "description": "Not yet implemented - The start of the measurement window, in milliseconds relative to the unit's first exposure to a flag variation"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "key",
      "kind"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_experiments\_put\_experimentation\_settings

Update experimentation settings

**Parameters:**

| Parameter            | Type      | Required | Default | Description                                               |
| -------------------- | --------- | -------- | ------- | --------------------------------------------------------- |
| `projectKey`         | string    | Yes      | —       | The project key                                           |
| `randomizationUnits` | object\[] | Yes      | —       | An array of randomization units allowed for this project. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "projectKey": {
        "type": "string",
        "description": "The project key"
      },
      "randomizationUnits": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "randomizationUnit": {
              "type": "string",
              "description": "The unit of randomization. Must match the key of an existing context kind in this project."
            },
            "default": {
              "type": "boolean",
              "description": "If true, any experiment iterations created within this project will default to using this randomization unit. A project can only have one default randomization unit."
            },
            "standardRandomizationUnit": {
              "type": "string",
              "description": "(deprecated) This field is deprecated and will be removed. Use randomizationUnit instead."
            }
          },
          "required": [
            "randomizationUnit"
          ]
        },
        "description": "An array of randomization units allowed for this project."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "randomizationUnits"
    ]
  }
  ```
</Expandable>
