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 representation of the desired changes. To learn more, read Updates.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.You can update the config, tags, and name of the flag import configuration.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring
integrationKey*string

The integration key

Formatstring
integrationId*string

The integration ID

Formatstring

Request Body

application/json

[index: integer]?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v2/integration-capabilities/flag-import/string/string/string" \  -H "Content-Type: application/json" \  -d '[    {      "op": "replace",      "path": "/exampleField"    }  ]'
{  "_links": {    "self": {      "href": "string",      "type": "string"    },    "parent": {      "href": "string",      "type": "string"    },    "project": {      "href": "string",      "type": "string"    }  },  "_id": "12ab3c4d5ef1a2345bcde67f",  "integrationKey": "split",  "projectKey": "default",  "config": {    "property1": null,    "property2": null  },  "tags": [],  "name": "Development environment configuration",  "version": 1,  "_access": {    "denied": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ],    "allowed": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ]  },  "_status": {    "status": "pending",    "lastImport": "1717263000000",    "lastError": "1714584600000",    "errors": [      {        "integrationId": "string",        "message": "string",        "statusCode": 0,        "timestamp": 0      }    ]  }}