diff --git a/src/bin/vip-import-media.js b/src/bin/vip-import-media.js index 84489b3f0..dd8985a72 100755 --- a/src/bin/vip-import-media.js +++ b/src/bin/vip-import-media.js @@ -12,6 +12,8 @@ import { MediaImportProgressTracker } from '../lib/media-import/progress'; import { mediaImportCheckStatus } from '../lib/media-import/status'; import { trackEventWithEnv } from '../lib/tracker'; +const API_VERSION = 'v2'; + const appQuery = ` id, name, @@ -142,6 +144,7 @@ Importing Media into your App... archiveUrl: url, overwriteExistingFiles, importIntermediateImages, + apiVersion: API_VERSION, }, }, } ); diff --git a/src/graphqlTypes.d.ts b/src/graphqlTypes.d.ts index 775e6b0ee..40a1ed494 100644 --- a/src/graphqlTypes.d.ts +++ b/src/graphqlTypes.d.ts @@ -947,6 +947,8 @@ export type AppEnvironmentStartDbBackupCopyPayload = { /** Mutation request input to start a Media Import */ export type AppEnvironmentStartMediaImportInput = { + /** API version to be used for the media import */ + apiVersion?: InputMaybe< Scalars[ 'String' ][ 'input' ] >; /** The unique ID of the Application */ applicationId: Scalars[ 'Int' ][ 'input' ]; /** Publicly accessible URL that contains an archive of the media files to be imported */