MENU
      更新リストの照会
        • PDF

        更新リストの照会

        • PDF

        記事の要約

        Classic/VPC環境で利用できます。

        サービスの更新情報を照会します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/services/{serviceId}/updates

        リクエストヘッダ

        AiTEMS APIで共通して使用されるヘッダの詳細は、AiTEMSの共通ヘッダをご参照ください。

        リクエストパスパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        serviceIdStringRequiredサービス ID

        リクエストクエリパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        typeStringRequired学習リクエストタイプ
        • personalRecommend | relatedItem | pop
          • personalRecommend: 顧客サービス利用者の過去の履歴に基づいて個別に推薦
          • relatedItem: アイテムの関連履歴に基づいて個別に推薦
          • pop: ランキング別人気アイテムを推薦
        trainVersionStringRequired学習のバージョン

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request GET 'https://aitems.apigw.ntruss.com/api/v1/services/49qkb******/updates
        ?type=personalRecommend
        &trainVersion=9fn93******' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Content-Type: application/json'
        Shell

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの説明は次の通りです。

        フィールドタイプ必須の有無説明
        updates[].updateVersionString-更新バージョン
        updates[].statusString-更新状態
        updates[].typeString-学習リクエストタイプ
        • personalRecommend | relatedItem | pop
          • personalRecommend: 顧客サービス利用者の過去の履歴に基づいて個別に推薦
          • relatedItem: アイテムの関連履歴に基づいて個別に推薦
          • pop: ランキング別人気アイテムを推薦
        updates[].createdDateString-更新のリクエスト日時
        updates[].finishedDateString-更新完了日時
        updates[].updateResultObject-更新結果
        updates[].updateResult.inputUsersCntInteger-更新をリクエストした User数
        updates[].updateResult.inputItemsCntInteger-更新をリクエストした Item数
        updates[].updateResult.inputRowsCntInteger-更新をリクエストした Interaction(ログ)数
        updates[].updateResult.updatedItemsCntInteger-更新された Item数
        updates[].updateResult.updatedUsersCntInteger-更新された User数

        レスポンスステータスコード

        AiTEMS APIで共通して使用されるレスポンスステータスコードの詳細は、AiTEMS APIの共通レスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

        {
          "updates": [
            {
              "updateVersion": "sl3ao******",
              "status": "completed",
              "type": "personalRecommend",
              "createdDate": "2024-08-16T15:37:34.720Z",
              "finishedDate": "2024-08-16T15:37:34.720Z",
              "updateResult": {
                "inputUsersCnt": 2,
                "inputItemsCnt": 0,
                "inputRowsCnt": 2,
                "updatedItemsCnt": 0,
                "updatedUsersCnt": 2
              }
            }
          ]
        }
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.