# JSONファイル経由でアイテムをインポートする 指定したURLを介してJSONファイルからストアにアイテムをインポートします。JSONファイルからのインポートの詳細については、ドキュメントを参照してください。 Endpoint: POST /v1/projects/{project_id}/import/from_external_file Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。 Example: 44056 ## Request fields (application/json): - `connector_external_id` (string, required) アイテムをインポートするための操作のタイプを指定する固定値。 Enum: "import_items" - `file_url` (string, required) JSON形式のデータを含むファイルのURL。ファイルは、一般に公開されているストレージサービスにホストされている必要があります。ファイルテンプレートは、パブリッシャーアカウントでの[ストア > 仮想アイテム > カタログ管理 > アイテムをインポート(JSON)](https://publisher.xsolla.com/0/projects/0/storefront/import-export/import-items)セクションからダウンロードできます。 Example: "https://my-bucket.s3.amazonaws.com/items.json" - `mode` (string) アクションをインポートする: Enum: "create", "create_and_update", "sync" ## Response 201 fields (application/json): - `import_id` (string) 操作IDをインポートします。JSONファイルのインポートに問題が発生した場合は、このIDをカスタマーサクセスマネージャーに報告するか、csm@xsolla.comまでメールを送信してください。 Example: "af9f3638a16e11ef880da2cd677d2d24" ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 422 fields (application/json): - `errorCode` (integer) Example: 1803 - `errorMessage` (string) Example: "[0410-1803]: File content-type doesn't allowed. Allowed content types: application/json; current content type: text/plain" - `statusCode` (integer) Example: 422 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x"