データセットの作成
    • PDF

    データセットの作成

    • PDF

    Article Summary

    データセットを作成します。

    POST https://aitems.apigw.ntruss.com/api/v1/datasets
    

    リクエスト

    リクエストボディー

    パラメーター名必須有無タイプ制約事項説明
    typeYesStringuser、item、interactionのうち1つを選択データセットタイプ
    nameYesString最初の文字はアルファベットまたは「 _ 」、アルファベット・数字・「 _ 」・「-」は3~20文字まで入力可能データセット名
    descriptionYesString0~100文字で入力データセットの説明
    schemaNameYesString作成されたスキーマ名作成するデータセットのスキーマを選択
    osInfo.regionYesStringKR, EN, JP ..オブジェクトストレージリージョン
    osInfo.bucketYesStringオブジェクトストレージバケット名
    osInfo.keyYesStringオブジェクトストレージキー

    レスポンス

    フィールド名タイプ説明備考
    datasetIdStringデータセットID
    typeStringデータセットタイプ
    nameStringデータセット名
    descriptionStringデータセットの説明
    schemaNameStringスキーマ名
    statusStringサービスの状態
    osInfo.regionStringオブジェクトストレージリージョン
    osInfo.bucketStringオブジェクトストレージバケット名
    osInfo.keyStringオブジェクトストレージキー
    connectedService[].serviceIdStringデータセットを使用中のサービスID
    connectedService[].nameStringデータセットを使用中のサービス名
    createdDateStringデータセット作成日
    updatedDateString最終アップデート

    レスポンスStatus

    HTTP StatusDesc
    201Created(作成完了)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    リクエスト例

    POST /api/v1/datasets
    Host: aitems.apigw.ntruss.com
    accept: application/json
    x-ncp-iam-access-key: {Access key}
    x-ncp-apigw-signature-v2: {API GW signature}
    x-ncp-apigw-timestamp: {timestamp}
    
    {
      "type": "item",
      "name": "item_dataset",
      "description": "abc",
      "schemaName": "test_item",
      "osInfo": {
        "region": "KR",
        "bucket": "aitems-820431800",
        "key": "bookmarks-items.csv"
      }
    }
    
    

    レスポンス例

    {
      "type": "item",
      "name": "item_dataset",
      "description": "abc",
      "datasetId": "3vewbw8r9r9",
      "schemaName": "test_item",
      "status": "enable",
      "osInfo": {
        "region": "KR",
        "bucket": "aitems-820431800",
        "key": "bookmarks-items.csv"
      },
      "connectedService": [],
      "createdDate": "2021-08-21T15:47:58.302",
      "updatedDate": "2021-09-03T16:22:07.509"
    }
    

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

    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.