> ## 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-flags

> LaunchDarkly Flags — create, manage, and target feature flags, triggers, and schedules

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

## Tools

| Tool                                                                                                                                | Description                                                          |
| ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [`launchdarkly_flags_copy_feature_flag`](#launchdarkly_flags_copy_feature_flag)                                                     | Copy feature flag                                                    |
| [`launchdarkly_flags_create_flag_link`](#launchdarkly_flags_create_flag_link)                                                       | Create flag link                                                     |
| [`launchdarkly_flags_create_trigger_workflow`](#launchdarkly_flags_create_trigger_workflow)                                         | Create flag trigger                                                  |
| [`launchdarkly_flags_delete_feature_flag`](#launchdarkly_flags_delete_feature_flag)                                                 | Delete feature flag                                                  |
| [`launchdarkly_flags_delete_flag_config_scheduled_changes`](#launchdarkly_flags_delete_flag_config_scheduled_changes)               | Delete scheduled changes workflow                                    |
| [`launchdarkly_flags_delete_flag_follower`](#launchdarkly_flags_delete_flag_follower)                                               | Remove a member as a follower of a flag in a project and environment |
| [`launchdarkly_flags_delete_flag_link`](#launchdarkly_flags_delete_flag_link)                                                       | Delete flag link                                                     |
| [`launchdarkly_flags_delete_trigger_workflow`](#launchdarkly_flags_delete_trigger_workflow)                                         | Delete flag trigger                                                  |
| [`launchdarkly_flags_get_dependent_flags`](#launchdarkly_flags_get_dependent_flags)                                                 | List dependent feature flags                                         |
| [`launchdarkly_flags_get_dependent_flags_by_env`](#launchdarkly_flags_get_dependent_flags_by_env)                                   | List dependent feature flags by environment                          |
| [`launchdarkly_flags_get_expiring_context_targets`](#launchdarkly_flags_get_expiring_context_targets)                               | Get expiring context targets for feature flag                        |
| [`launchdarkly_flags_get_expiring_user_targets`](#launchdarkly_flags_get_expiring_user_targets)                                     | Get expiring user targets for feature flag                           |
| [`launchdarkly_flags_get_feature_flag`](#launchdarkly_flags_get_feature_flag)                                                       | Get feature flag                                                     |
| [`launchdarkly_flags_get_feature_flag_scheduled_change`](#launchdarkly_flags_get_feature_flag_scheduled_change)                     | Get a scheduled change                                               |
| [`launchdarkly_flags_get_feature_flag_status`](#launchdarkly_flags_get_feature_flag_status)                                         | Get feature flag status                                              |
| [`launchdarkly_flags_get_feature_flag_status_across_environments`](#launchdarkly_flags_get_feature_flag_status_across_environments) | Get flag status across environments                                  |
| [`launchdarkly_flags_get_feature_flag_statuses`](#launchdarkly_flags_get_feature_flag_statuses)                                     | List feature flag statuses                                           |
| [`launchdarkly_flags_get_feature_flags`](#launchdarkly_flags_get_feature_flags)                                                     | List feature flags                                                   |
| [`launchdarkly_flags_get_flag_config_scheduled_changes`](#launchdarkly_flags_get_flag_config_scheduled_changes)                     | List scheduled changes                                               |
| [`launchdarkly_flags_get_flag_followers`](#launchdarkly_flags_get_flag_followers)                                                   | Get followers of a flag in a project and environment                 |
| [`launchdarkly_flags_get_flag_links`](#launchdarkly_flags_get_flag_links)                                                           | List flag links                                                      |
| [`launchdarkly_flags_get_followers_by_proj_env`](#launchdarkly_flags_get_followers_by_proj_env)                                     | Get followers of all flags in a given project and environment        |
| [`launchdarkly_flags_get_tags`](#launchdarkly_flags_get_tags)                                                                       | List tags                                                            |
| [`launchdarkly_flags_get_trigger_workflow_by_id`](#launchdarkly_flags_get_trigger_workflow_by_id)                                   | Get flag trigger by ID                                               |
| [`launchdarkly_flags_get_trigger_workflows`](#launchdarkly_flags_get_trigger_workflows)                                             | List flag triggers                                                   |
| [`launchdarkly_flags_patch_expiring_targets`](#launchdarkly_flags_patch_expiring_targets)                                           | Update expiring context targets on feature flag                      |
| [`launchdarkly_flags_patch_expiring_user_targets`](#launchdarkly_flags_patch_expiring_user_targets)                                 | Update expiring user targets on feature flag                         |
| [`launchdarkly_flags_patch_feature_flag`](#launchdarkly_flags_patch_feature_flag)                                                   | Update feature flag                                                  |
| [`launchdarkly_flags_patch_flag_config_scheduled_change`](#launchdarkly_flags_patch_flag_config_scheduled_change)                   | Update scheduled changes workflow                                    |
| [`launchdarkly_flags_patch_trigger_workflow`](#launchdarkly_flags_patch_trigger_workflow)                                           | Update flag trigger                                                  |
| [`launchdarkly_flags_post_feature_flag`](#launchdarkly_flags_post_feature_flag)                                                     | Create a feature flag                                                |
| [`launchdarkly_flags_post_flag_config_scheduled_changes`](#launchdarkly_flags_post_flag_config_scheduled_changes)                   | Create scheduled changes workflow                                    |
| [`launchdarkly_flags_post_migration_safety_issues`](#launchdarkly_flags_post_migration_safety_issues)                               | Get migration safety issues                                          |
| [`launchdarkly_flags_put_flag_follower`](#launchdarkly_flags_put_flag_follower)                                                     | Add a member as a follower of a flag in a project and environment    |
| [`launchdarkly_flags_update_flag_link`](#launchdarkly_flags_update_flag_link)                                                       | Update flag link                                                     |

***

## launchdarkly\_flags\_copy\_feature\_flag

Copy feature flag

**Parameters:**

| Parameter         | Type      | Required | Default | Description                                                                                                                                                                                                                                                                |
| ----------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`      | string    | Yes      | —       | The project key                                                                                                                                                                                                                                                            |
| `featureFlagKey`  | string    | Yes      | —       | The feature flag key. The key identifies the flag in your code.                                                                                                                                                                                                            |
| `comment`         | string    | No       | —       | Optional comment                                                                                                                                                                                                                                                           |
| `excludedActions` | string\[] | No       | —       | Optional list of the flag changes NOT to copy from the source environment to the target environment. You may include either  \<code>includedActions\</code> or \<code>excludedActions\</code>, but not both. If you include neither, then all flag changes will be copied. |
| `includedActions` | string\[] | No       | —       | Optional list of the flag changes to copy from the source environment to the target environment. You may include either \<code>includedActions\</code> or \<code>excludedActions\</code>, but not both. If you include neither, then all flag changes will be copied.      |
| `source`          | object    | Yes      | —       | The source value                                                                                                                                                                                                                                                           |
| `target`          | object    | Yes      | —       | The target 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key. The key identifies the flag in your code."
      },
      "comment": {
        "type": "string",
        "description": "Optional comment"
      },
      "excludedActions": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "updateOn",
            "updateRules",
            "updateFallthrough",
            "updateOffVariation",
            "updatePrerequisites",
            "updateTargets",
            "updateFlagConfigMigrationSettings"
          ]
        },
        "description": "Optional list of the flag changes NOT to copy from the source environment to the target environment. You may include either  <code>includedActions</code> or <code>excludedActions</code>, but not both. If you include neither, then all flag changes will be copied."
      },
      "includedActions": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "updateOn",
            "updateRules",
            "updateFallthrough",
            "updateOffVariation",
            "updatePrerequisites",
            "updateTargets",
            "updateFlagConfigMigrationSettings"
          ]
        },
        "description": "Optional list of the flag changes to copy from the source environment to the target environment. You may include either <code>includedActions</code> or <code>excludedActions</code>, but not both. If you include neither, then all flag changes will be copied."
      },
      "source": {
        "type": "object",
        "description": "The source value",
        "properties": {
          "key": {
            "type": "string",
            "description": "The environment key"
          },
          "currentVersion": {
            "type": "integer",
            "description": "Optional flag version. If you include this, the operation only succeeds if the current flag version in the environment matches this version."
          }
        },
        "required": [
          "key"
        ]
      },
      "target": {
        "type": "object",
        "description": "The target value",
        "properties": {
          "key": {
            "type": "string",
            "description": "The environment key"
          },
          "currentVersion": {
            "type": "integer",
            "description": "Optional flag version. If you include this, the operation only succeeds if the current flag version in the environment matches this version."
          }
        },
        "required": [
          "key"
        ]
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "source",
      "target"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_create\_flag\_link

Create flag link

**Parameters:**

| Parameter        | Type    | Required | Default | Description                                                                                                                                                                                                                 |
| ---------------- | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string  | Yes      | —       | The project key                                                                                                                                                                                                             |
| `featureFlagKey` | string  | Yes      | —       | The feature flag key                                                                                                                                                                                                        |
| `deepLink`       | string  | No       | —       | The URL for the external resource you are linking the flag to                                                                                                                                                               |
| `description`    | string  | No       | —       | The description of the flag link                                                                                                                                                                                            |
| `integrationKey` | string  | No       | —       | The integration key for an integration whose \<code>manifest.json\</code> includes the \<code>flagLink\</code> capability, if this is a flag link for an existing integration. Do not include for URL flag links.           |
| `key`            | string  | No       | —       | The flag link key                                                                                                                                                                                                           |
| `metadata`       | object  | No       | —       | The metadata required by this integration in order to create a flag link, if this is a flag link for an existing integration. Defined in the integration's \<code>manifest.json\</code> file under \<code>flagLink\</code>. |
| `timestamp`      | integer | No       | —       | The timestamp value                                                                                                                                                                                                         |
| `title`          | string  | No       | —       | The title of the flag link                                                                                                                                                                                                  |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "deepLink": {
        "type": "string",
        "description": "The URL for the external resource you are linking the flag to"
      },
      "description": {
        "type": "string",
        "description": "The description of the flag link"
      },
      "integrationKey": {
        "type": "string",
        "description": "The integration key for an integration whose <code>manifest.json</code> includes the <code>flagLink</code> capability, if this is a flag link for an existing integration. Do not include for URL flag links."
      },
      "key": {
        "type": "string",
        "description": "The flag link key"
      },
      "metadata": {
        "type": "object",
        "description": "The metadata required by this integration in order to create a flag link, if this is a flag link for an existing integration. Defined in the integration's <code>manifest.json</code> file under <code>flagLink</code>."
      },
      "timestamp": {
        "type": "integer",
        "description": "The timestamp value"
      },
      "title": {
        "type": "string",
        "description": "The title of the flag link"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_create\_trigger\_workflow

Create flag trigger

**Parameters:**

| Parameter        | Type      | Required | Default | Description                                                                                                                                                                                                                        |
| ---------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                                                                                                                                                                                                                    |
| `environmentKey` | string    | Yes      | —       | The environment key                                                                                                                                                                                                                |
| `featureFlagKey` | string    | Yes      | —       | The feature flag key                                                                                                                                                                                                               |
| `comment`        | string    | No       | —       | Optional comment describing the trigger                                                                                                                                                                                            |
| `instructions`   | object\[] | No       | —       | The action to perform when triggering. This should be an array with a single object that looks like \<code>\{"kind": "flag\_action"}\</code>. Supported flag actions are \<code>turnFlagOn\</code> and \<code>turnFlagOff\</code>. |
| `integrationKey` | string    | Yes      | —       | The unique identifier of the integration for your trigger. Use \<code>generic-trigger\</code> for integrations not explicitly supported.                                                                                           |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the trigger"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The action to perform when triggering. This should be an array with a single object that looks like <code>{\"kind\": \"flag_action\"}</code>. Supported flag actions are <code>turnFlagOn</code> and <code>turnFlagOff</code>."
      },
      "integrationKey": {
        "type": "string",
        "description": "The unique identifier of the integration for your trigger. Use <code>generic-trigger</code> for integrations not explicitly supported."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey",
      "integrationKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_delete\_feature\_flag

Delete feature flag

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                     |
| ---------------- | ------ | -------- | ------- | --------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                 |
| `featureFlagKey` | string | Yes      | —       | The feature flag key. The key identifies the flag in your code. |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key. The key identifies the flag in your code."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_delete\_flag\_config\_scheduled\_changes

Delete scheduled changes workflow

**Parameters:**

| Parameter        | Type   | Required | Default | Description             |
| ---------------- | ------ | -------- | ------- | ----------------------- |
| `projectKey`     | string | Yes      | —       | The project key         |
| `featureFlagKey` | string | Yes      | —       | The feature flag key    |
| `environmentKey` | string | Yes      | —       | The environment key     |
| `id`             | string | Yes      | —       | The scheduled change 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "id": {
        "type": "string",
        "description": "The scheduled change id"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_delete\_flag\_follower

Remove a member as a follower of a flag in a project and environment

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                              |
| ---------------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                                          |
| `featureFlagKey` | string | Yes      | —       | The feature flag key                                                                                     |
| `environmentKey` | string | Yes      | —       | The environment key                                                                                      |
| `memberId`       | string | Yes      | —       | The memberId of the member to remove as a follower of the flag. Reader roles can only remove themselves. |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "memberId": {
        "type": "string",
        "description": "The memberId of the member to remove as a follower of the flag. Reader roles can only remove themselves."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "memberId"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_delete\_flag\_link

Delete flag link

**Parameters:**

| Parameter        | Type   | Required | Default | Description             |
| ---------------- | ------ | -------- | ------- | ----------------------- |
| `projectKey`     | string | Yes      | —       | The project key         |
| `featureFlagKey` | string | Yes      | —       | The feature flag key    |
| `id`             | string | Yes      | —       | The flag link ID or 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "id": {
        "type": "string",
        "description": "The flag link ID or Key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_delete\_trigger\_workflow

Delete flag trigger

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag key |
| `id`             | string | Yes      | —       | The flag trigger 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "id": {
        "type": "string",
        "description": "The flag trigger ID"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_dependent\_flags

List dependent feature flags

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_dependent\_flags\_by\_env

List dependent feature flags by environment

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_expiring\_context\_targets

Get expiring context targets for feature flag

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_expiring\_user\_targets

Get expiring user targets for feature flag

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flag

Get feature flag

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                       |
| ---------------- | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                                   |
| `featureFlagKey` | string | Yes      | —       | The feature flag key                                                                              |
| `env`            | string | No       | —       | Filter configurations by environment                                                              |
| `expand`         | string | No       | —       | A comma-separated list of fields to expand 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "env": {
        "type": "string",
        "description": "Filter configurations by environment"
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of fields to expand in the response. Supported fields are explained above."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flag\_scheduled\_change

Get a scheduled change

**Parameters:**

| Parameter        | Type   | Required | Default | Description             |
| ---------------- | ------ | -------- | ------- | ----------------------- |
| `projectKey`     | string | Yes      | —       | The project key         |
| `featureFlagKey` | string | Yes      | —       | The feature flag key    |
| `environmentKey` | string | Yes      | —       | The environment key     |
| `id`             | string | Yes      | —       | The scheduled change 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "id": {
        "type": "string",
        "description": "The scheduled change id"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flag\_status

Get feature flag status

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flag\_status\_across\_environments

Get flag status across environments

**Parameters:**

| Parameter        | Type   | Required | Default | Description                 |
| ---------------- | ------ | -------- | ------- | --------------------------- |
| `projectKey`     | string | Yes      | —       | The project key             |
| `featureFlagKey` | string | Yes      | —       | The feature flag key        |
| `env`            | string | No       | —       | Optional environment filter |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "env": {
        "type": "string",
        "description": "Optional environment filter"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flag\_statuses

List feature flag statuses

**Parameters:**

| Parameter        | Type   | Required | Default | Description         |
| ---------------- | ------ | -------- | ------- | ------------------- |
| `projectKey`     | string | Yes      | —       | The project key     |
| `environmentKey` | string | Yes      | —       | The environment 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_feature\_flags

List feature flags

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                                                                                    |
| ------------ | ------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey` | string  | Yes      | —       | The project key                                                                                                                                                                                                |
| `env`        | string  | No       | —       | Filter configurations by environment                                                                                                                                                                           |
| `tag`        | string  | No       | —       | Filter feature flags by tag                                                                                                                                                                                    |
| `limit`      | integer | No       | —       | The number of feature flags 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`.                             |
| `archived`   | boolean | No       | —       | Deprecated, use `filter=archived:true` instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned                                                    |
| `summary`    | boolean | No       | —       | By default, flags do *not* include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned. |
| `filter`     | string  | No       | —       | A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields.                                                           |
| `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.                                 |
| `compare`    | boolean | No       | —       | Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments.                                                                       |
| `expand`     | string  | No       | —       | A comma-separated list of fields to expand 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"
      },
      "env": {
        "type": "string",
        "description": "Filter configurations by environment"
      },
      "tag": {
        "type": "string",
        "description": "Filter feature flags by tag"
      },
      "limit": {
        "type": "integer",
        "description": "The number of feature flags 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`."
      },
      "archived": {
        "type": "boolean",
        "description": "Deprecated, use `filter=archived:true` instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned"
      },
      "summary": {
        "type": "boolean",
        "description": "By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned."
      },
      "filter": {
        "type": "string",
        "description": "A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields."
      },
      "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."
      },
      "compare": {
        "type": "boolean",
        "description": "Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments."
      },
      "expand": {
        "type": "string",
        "description": "A comma-separated list of fields to expand in the response. Supported fields are explained above."
      }
    },
    "required": [
      "PCID",
      "projectKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_flag\_config\_scheduled\_changes

List scheduled changes

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `featureFlagKey` | string | Yes      | —       | The feature flag key |
| `environmentKey` | string | Yes      | —       | The environment 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_flag\_followers

Get followers of a flag in a project and environment

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `featureFlagKey` | string | Yes      | —       | The feature flag key |
| `environmentKey` | string | Yes      | —       | The environment 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_flag\_links

List flag links

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_followers\_by\_proj\_env

Get followers of all flags in a given project and environment

**Parameters:**

| Parameter        | Type   | Required | Default | Description         |
| ---------------- | ------ | -------- | ------- | ------------------- |
| `projectKey`     | string | Yes      | —       | The project key     |
| `environmentKey` | string | Yes      | —       | The environment 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_tags

List tags

**Parameters:**

| Parameter  | Type      | Required | Default | Description                                                                                                                                                                                            |
| ---------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `kind`     | string\[] | No       | —       | Fetch tags associated with the specified resource type. Options are `flag`, `project`, `environment`, `segment`, `metric`, `metric-data-source`, `aiconfig`, and `view`. Returns all types by default. |
| `pre`      | string    | No       | —       | Return tags with the specified prefix                                                                                                                                                                  |
| `archived` | boolean   | No       | —       | Whether or not to return archived flags                                                                                                                                                                |
| `limit`    | integer   | No       | —       | The number of tags to return. Maximum is 1000.                                                                                                                                                         |
| `offset`   | integer   | No       | —       | The index of the first tag to return. Default is 0.                                                                                                                                                    |
| `asOf`     | string    | No       | —       | The time to retrieve tags as of. Default is the current time.                                                                                                                                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "kind": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Fetch tags associated with the specified resource type. Options are `flag`, `project`, `environment`, `segment`, `metric`, `metric-data-source`, `aiconfig`, and `view`. Returns all types by default."
      },
      "pre": {
        "type": "string",
        "description": "Return tags with the specified prefix"
      },
      "archived": {
        "type": "boolean",
        "description": "Whether or not to return archived flags"
      },
      "limit": {
        "type": "integer",
        "description": "The number of tags to return. Maximum is 1000."
      },
      "offset": {
        "type": "integer",
        "description": "The index of the first tag to return. Default is 0."
      },
      "asOf": {
        "type": "string",
        "description": "The time to retrieve tags as of. Default is the current time."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_trigger\_workflow\_by\_id

Get flag trigger by ID

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `featureFlagKey` | string | Yes      | —       | The feature flag key |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `id`             | string | Yes      | —       | The flag trigger 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "id": {
        "type": "string",
        "description": "The flag trigger ID"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_get\_trigger\_workflows

List flag triggers

**Parameters:**

| Parameter        | Type   | Required | Default | Description          |
| ---------------- | ------ | -------- | ------- | -------------------- |
| `projectKey`     | string | Yes      | —       | The project key      |
| `environmentKey` | string | Yes      | —       | The environment key  |
| `featureFlagKey` | string | Yes      | —       | The feature flag 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"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_patch\_expiring\_targets

Update expiring context targets on feature flag

**Parameters:**

| Parameter        | Type      | Required | Default | Description                               |
| ---------------- | --------- | -------- | ------- | ----------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                           |
| `environmentKey` | string    | Yes      | —       | The environment key                       |
| `featureFlagKey` | string    | Yes      | —       | The feature flag key                      |
| `comment`        | string    | No       | —       | Optional comment describing the change    |
| `instructions`   | object\[] | Yes      | —       | The instructions to perform when updating |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the change"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions to perform when updating"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_patch\_expiring\_user\_targets

Update expiring user targets on feature flag

**Parameters:**

| Parameter        | Type      | Required | Default | Description                               |
| ---------------- | --------- | -------- | ------- | ----------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                           |
| `environmentKey` | string    | Yes      | —       | The environment key                       |
| `featureFlagKey` | string    | Yes      | —       | The feature flag key                      |
| `comment`        | string    | No       | —       | Optional comment describing the change    |
| `instructions`   | object\[] | Yes      | —       | The instructions to perform when updating |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the change"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions to perform when updating"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_patch\_feature\_flag

Update feature flag

**Parameters:**

| Parameter         | Type      | Required | Default | Description                                                                                                       |
| ----------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
| `projectKey`      | string    | Yes      | —       | The project key                                                                                                   |
| `featureFlagKey`  | string    | Yes      | —       | The feature flag key. The key identifies the flag in your code.                                                   |
| `ignoreConflicts` | boolean   | No       | —       | If true, the patch will be applied even if it causes a pending scheduled change or approval request to fail.      |
| `dryRun`          | boolean   | No       | —       | If true, the patch will be validated but not persisted. Returns a preview of the flag after the patch is applied. |
| `comment`         | string    | No       | —       | Optional comment                                                                                                  |
| `patch`           | object\[] | Yes      | —       | The patch 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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key. The key identifies the flag in your code."
      },
      "ignoreConflicts": {
        "type": "boolean",
        "description": "If true, the patch will be applied even if it causes a pending scheduled change or approval request to fail."
      },
      "dryRun": {
        "type": "boolean",
        "description": "If true, the patch will be validated but not persisted. Returns a preview of the flag after the patch is applied."
      },
      "comment": {
        "type": "string",
        "description": "Optional comment"
      },
      "patch": {
        "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": "The patch value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "patch"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_patch\_flag\_config\_scheduled\_change

Update scheduled changes workflow

**Parameters:**

| Parameter         | Type      | Required | Default | Description                                                                                                        |
| ----------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| `projectKey`      | string    | Yes      | —       | The project key                                                                                                    |
| `featureFlagKey`  | string    | Yes      | —       | The feature flag key                                                                                               |
| `environmentKey`  | string    | Yes      | —       | The environment key                                                                                                |
| `id`              | string    | Yes      | —       | The scheduled change ID                                                                                            |
| `ignoreConflicts` | boolean   | No       | —       | Whether to succeed (`true`) or fail (`false`) when these new instructions conflict with existing scheduled changes |
| `comment`         | string    | No       | —       | Optional comment describing the update to the scheduled changes                                                    |
| `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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "id": {
        "type": "string",
        "description": "The scheduled change ID"
      },
      "ignoreConflicts": {
        "type": "boolean",
        "description": "Whether to succeed (`true`) or fail (`false`) when these new instructions conflict with existing scheduled changes"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the update to the scheduled changes"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "id",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_patch\_trigger\_workflow

Update flag trigger

**Parameters:**

| Parameter        | Type      | Required | Default | Description                                                                                                                                 |
| ---------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`     | string    | Yes      | —       | The project key                                                                                                                             |
| `environmentKey` | string    | Yes      | —       | The environment key                                                                                                                         |
| `featureFlagKey` | string    | Yes      | —       | The feature flag key                                                                                                                        |
| `id`             | string    | Yes      | —       | The flag trigger ID                                                                                                                         |
| `comment`        | string    | No       | —       | Optional comment describing the update                                                                                                      |
| `instructions`   | object\[] | No       | —       | The instructions to perform when updating. This should be an array with objects that look like \<code>\{"kind": "trigger\_action"}\</code>. |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "id": {
        "type": "string",
        "description": "The flag trigger ID"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the update"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions to perform when updating. This should be an array with objects that look like <code>{\"kind\": \"trigger_action\"}</code>."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "environmentKey",
      "featureFlagKey",
      "id"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_post\_feature\_flag

Create a feature flag

**Parameters:**

| Parameter                | Type      | Required | Default | Description                                                                                                                                                                                                                                              |
| ------------------------ | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectKey`             | string    | Yes      | —       | The project key                                                                                                                                                                                                                                          |
| `clone`                  | string    | No       | —       | The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting `clone=flagKey` copies the full targeting configuration for all environments, including `on/off` state, from the original flag to the new flag. |
| `clientSideAvailability` | object    | No       | —       | Client Side Availability                                                                                                                                                                                                                                 |
| `customProperties`       | object    | No       | —       | Custom Properties                                                                                                                                                                                                                                        |
| `defaults`               | object    | No       | —       | The defaults value                                                                                                                                                                                                                                       |
| `description`            | string    | No       | —       | Description of the feature flag. Defaults to an empty string.                                                                                                                                                                                            |
| `includeInSnippet`       | boolean   | No       | —       | Deprecated, use \<code>clientSideAvailability\</code>. Whether this flag should be made available to the client-side JavaScript SDK. Defaults to \<code>false\</code>.                                                                                   |
| `initialPrerequisites`   | object\[] | No       | —       | Initial set of prerequisite flags for all environments                                                                                                                                                                                                   |
| `isFlagOn`               | boolean   | No       | —       | Whether to automatically turn the flag on across all environments at creation. Defaults to \<code>false\</code>.                                                                                                                                         |
| `key`                    | string    | Yes      | —       | A unique key used to reference the flag in your code                                                                                                                                                                                                     |
| `maintainerId`           | string    | No       | —       | The ID of the member who maintains this feature flag                                                                                                                                                                                                     |
| `maintainerTeamKey`      | string    | No       | —       | The key of the team that maintains this feature flag                                                                                                                                                                                                     |
| `migrationSettings`      | object    | No       | —       | Migration Settings                                                                                                                                                                                                                                       |
| `name`                   | string    | Yes      | —       | A human-friendly name for the feature flag                                                                                                                                                                                                               |
| `purpose`                | string    | No       | —       | Purpose of the flag                                                                                                                                                                                                                                      |
| `tags`                   | string\[] | No       | —       | Tags for the feature flag. Defaults to an empty array.                                                                                                                                                                                                   |
| `temporary`              | boolean   | No       | —       | Whether the flag is a temporary flag. Defaults to \<code>true\</code>.                                                                                                                                                                                   |
| `variations`             | object\[] | No       | —       | An array of possible variations for the flag. The variation values must be unique. If omitted, two boolean variations of \<code>true\</code> and \<code>false\</code> will be used.                                                                      |

<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"
      },
      "clone": {
        "type": "string",
        "description": "The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting `clone=flagKey` copies the full targeting configuration for all environments, including `on/off` state, from the original flag to the new flag."
      },
      "clientSideAvailability": {
        "type": "object",
        "description": "Client Side Availability",
        "properties": {
          "usingEnvironmentId": {
            "type": "boolean",
            "description": "Whether to enable availability for client-side SDKs. Defaults to <code>false</code>."
          },
          "usingMobileKey": {
            "type": "boolean",
            "description": "Whether to enable availability for mobile SDKs. Defaults to <code>true</code>."
          }
        },
        "required": [
          "usingEnvironmentId",
          "usingMobileKey"
        ]
      },
      "customProperties": {
        "type": "object",
        "description": "Custom Properties"
      },
      "defaults": {
        "type": "object",
        "description": "The defaults value",
        "properties": {
          "onVariation": {
            "type": "integer",
            "description": "The index, from the array of variations for this flag, of the variation to serve by default when targeting is on."
          },
          "offVariation": {
            "type": "integer",
            "description": "The index, from the array of variations for this flag, of the variation to serve by default when targeting is off."
          }
        },
        "required": [
          "onVariation",
          "offVariation"
        ]
      },
      "description": {
        "type": "string",
        "description": "Description of the feature flag. Defaults to an empty string."
      },
      "includeInSnippet": {
        "type": "boolean",
        "description": "Deprecated, use <code>clientSideAvailability</code>. Whether this flag should be made available to the client-side JavaScript SDK. Defaults to <code>false</code>."
      },
      "initialPrerequisites": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "Flag key of the prerequisite flag"
            },
            "variationId": {
              "type": "string",
              "description": "ID of a variation of the prerequisite flag"
            }
          },
          "required": [
            "key",
            "variationId"
          ]
        },
        "description": "Initial set of prerequisite flags for all environments"
      },
      "isFlagOn": {
        "type": "boolean",
        "description": "Whether to automatically turn the flag on across all environments at creation. Defaults to <code>false</code>."
      },
      "key": {
        "type": "string",
        "description": "A unique key used to reference the flag in your code"
      },
      "maintainerId": {
        "type": "string",
        "description": "The ID of the member who maintains this feature flag"
      },
      "maintainerTeamKey": {
        "type": "string",
        "description": "The key of the team that maintains this feature flag"
      },
      "migrationSettings": {
        "type": "object",
        "description": "Migration Settings",
        "properties": {
          "contextKind": {
            "type": "string",
            "description": "Context kind for a migration with 6 stages, where data is being moved"
          },
          "stageCount": {
            "type": "integer",
            "description": "Stage Count"
          }
        },
        "required": [
          "stageCount"
        ]
      },
      "name": {
        "type": "string",
        "description": "A human-friendly name for the feature flag"
      },
      "purpose": {
        "type": "string",
        "description": "Purpose of the flag",
        "enum": [
          "migration",
          "holdout"
        ]
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Tags for the feature flag. Defaults to an empty array."
      },
      "temporary": {
        "type": "boolean",
        "description": "Whether the flag is a temporary flag. Defaults to <code>true</code>."
      },
      "variations": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "_id": {
              "type": "string",
              "description": "The ID of the variation. Leave empty when you are creating a flag."
            },
            "value": {
              "description": "The value of the variation. For boolean flags, this must be <code>true</code> or <code>false</code>. For multivariate flags, this may be a string, number, or JSON object."
            },
            "description": {
              "type": "string",
              "description": "Description of the variation. Defaults to an empty string, but is omitted from the response if not set."
            },
            "name": {
              "type": "string",
              "description": "A human-friendly name for the variation. Defaults to an empty string, but is omitted from the response if not set."
            }
          },
          "required": [
            "value"
          ]
        },
        "description": "An array of possible variations for the flag. The variation values must be unique. If omitted, two boolean variations of <code>true</code> and <code>false</code> will be used."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "key",
      "name"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_post\_flag\_config\_scheduled\_changes

Create scheduled changes workflow

**Parameters:**

| Parameter         | Type      | Required | Default | Description                                                                                                    |
| ----------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `projectKey`      | string    | Yes      | —       | The project key                                                                                                |
| `featureFlagKey`  | string    | Yes      | —       | The feature flag key                                                                                           |
| `environmentKey`  | string    | Yes      | —       | The environment key                                                                                            |
| `ignoreConflicts` | boolean   | No       | —       | Whether to succeed (`true`) or fail (`false`) when these instructions conflict with existing scheduled changes |
| `comment`         | string    | No       | —       | Optional comment describing the scheduled changes                                                              |
| `executionDate`   | integer   | Yes      | —       | Execution Date                                                                                                 |
| `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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "ignoreConflicts": {
        "type": "boolean",
        "description": "Whether to succeed (`true`) or fail (`false`) when these instructions conflict with existing scheduled changes"
      },
      "comment": {
        "type": "string",
        "description": "Optional comment describing the scheduled changes"
      },
      "executionDate": {
        "type": "integer",
        "description": "Execution Date"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "executionDate",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_post\_migration\_safety\_issues

Get migration safety issues

**Parameters:**

| Parameter        | Type      | Required | Default | Description            |
| ---------------- | --------- | -------- | ------- | ---------------------- |
| `projectKey`     | string    | Yes      | —       | The project key        |
| `flagKey`        | string    | Yes      | —       | The migration flag key |
| `environmentKey` | string    | Yes      | —       | The environment key    |
| `comment`        | string    | No       | —       | The comment value      |
| `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"
      },
      "flagKey": {
        "type": "string",
        "description": "The migration flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "comment": {
        "type": "string",
        "description": "The comment value"
      },
      "instructions": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "The instructions value"
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "flagKey",
      "environmentKey",
      "instructions"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_put\_flag\_follower

Add a member as a follower of a flag in a project and environment

**Parameters:**

| Parameter        | Type   | Required | Default | Description                                                                                        |
| ---------------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------- |
| `projectKey`     | string | Yes      | —       | The project key                                                                                    |
| `featureFlagKey` | string | Yes      | —       | The feature flag key                                                                               |
| `environmentKey` | string | Yes      | —       | The environment key                                                                                |
| `memberId`       | string | Yes      | —       | The memberId of the member to add as a follower of the flag. Reader roles can only add themselves. |

<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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "environmentKey": {
        "type": "string",
        "description": "The environment key"
      },
      "memberId": {
        "type": "string",
        "description": "The memberId of the member to add as a follower of the flag. Reader roles can only add themselves."
      }
    },
    "required": [
      "PCID",
      "projectKey",
      "featureFlagKey",
      "environmentKey",
      "memberId"
    ]
  }
  ```
</Expandable>

***

## launchdarkly\_flags\_update\_flag\_link

Update flag link

**Parameters:**

| Parameter        | Type      | Required | Default | Description          |
| ---------------- | --------- | -------- | ------- | -------------------- |
| `projectKey`     | string    | Yes      | —       | The project key      |
| `featureFlagKey` | string    | Yes      | —       | The feature flag key |
| `id`             | string    | Yes      | —       | The flag link ID     |
| `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"
      },
      "featureFlagKey": {
        "type": "string",
        "description": "The feature flag key"
      },
      "id": {
        "type": "string",
        "description": "The flag link ID"
      },
      "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",
      "featureFlagKey",
      "id",
      "body"
    ]
  }
  ```
</Expandable>
