---
title: "Update a flag import configuration"
method: PATCH
path: "/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}"
tags: ["Flag import configurations (beta)"]
---

# Update a flag import configuration

`PATCH /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}`

Updating a flag import configuration uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).<br/><br/>To add an element to the import configuration fields that are arrays, set the `path` to the name of the field and then append `/<array index>`. Use `/0` to add to the beginning of the array. Use `/-` to add to the end of the array.<br/><br/>You can update the `config`, `tags`, and `name` of the flag import configuration.

## Path parameters

- `projectKey` string, string, required — The project key
- `integrationKey` string, string, required — The integration key
- `integrationId` string, string, required — The integration ID

## Request body

- PatchOperation[]
  - `op` string, required — The type of operation to perform
  - `path` string, required — A JSON Pointer string specifying the part of the document to operate on
  - `value` string — A JSON value used in "add", "replace", and "test" operations

## Response `200`

Flag import response

- FlagImportIntegration
  - `_links` FlagImportIntegrationLinks, required
    - `self` Link, required
      - `href` string
      - `type` string
    - `parent` Link, required
      - `href` string
      - `type` string
    - `project` Link, required
      - `href` string
      - `type` string
  - `_id` string, required — The integration ID
  - `integrationKey` 'split' | 'unleash', required — The integration key
  - `projectKey` string, required — The project key
  - `config` FormVariableConfig, required
  - `tags` string[], required — List of tags for this configuration
  - `name` string, required — Name of the configuration
  - `version` integer, required — Version of the current configuration
  - `_access` Access
    - `denied` AccessDenied[], required
      - `action` string, required
      - `reason` AccessDeniedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
    - `allowed` AccessAllowedRep[], required
      - `action` string, required
      - `reason` AccessAllowedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
  - `_status` FlagImportStatus, required
    - `status` 'complete' | 'importing' | 'pending' | 'failed' | 'partial' — The current status of the import integrations related import job
    - `lastImport` integer
    - `lastError` integer
    - `errors` StatusResponse[]
      - `integrationId` string
      - `message` string
      - `statusCode` integer
      - `timestamp` integer

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Project or import configuration not found
- `409` — Status conflict
- `429` — Rate limited

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
