Validate feature import data

Validates a feature flag data set. Checks whether the data can be imported into the specified project and environment. The returned value is an object that contains errors, warnings, and permissions required to perform the import, as described in the import documentation.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

importTogglesSchema
projectstringRequired

The exported project

environmentstringRequired

The exported environment

dataobjectRequired

The result of the export operation, providing you with the feature flag definitions, strategy definitions and the rest of the elements relevant to the features (tags, environments etc.)

Response

importTogglesValidateSchema
errorslist of objects
A list of errors that prevent the provided data from being successfully imported.
warningslist of objects
A list of warnings related to the provided data.
permissionslist of objects or null
Any additional permissions required to import the data. If the list is empty, you require no additional permissions beyond what your user already has.

Errors