Edit dataset
    • PDF

    Edit dataset

    • PDF

    Article summary

    Available in Classic and VPC

    Edit information such as the dataset's name, description, schema, etc.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    POST/datasets/{datasetId}

    Request headers

    For headers common to all AiTEMS APIs, see Common AiTEMS headers.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    datasetIdStringRequiredDataset ID

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    typeStringRequiredDataset type
    • user | item | interaction
      • user: data containing user information (age, gender, etc.)
      • item: data with product-related information (price, release date, category, etc.)
      • interaction: data that captures the history of interactions between users and products
    nameStringRequiredDataset name
    • 3 to 20 characters, including English letters, numbers, and special characters "_" and "-", and must begin with an English letter
    descriptionStringOptionalDataset description
    • 0 - 100 characters
    schemaNameStringRequiredDataset's schema name
    osInfoObjectRequiredInformation of Object Storage where the data file is stored
    osInfo.regionStringRequiredRegion of Object Storage where the data file is stored
    • KR
    osInfo.bucketStringRequiredBucket name of Object Storage where the data file is stored
    osInfo.keyStringRequiredPath (prefix) of Object Storage where the data file is stored

    Request example

    The following is a sample request.

    curl --location --request POST 'https://aitems.apigw.ntruss.com/api/v1/datasets/bu457******' \
    --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' \
    --data '{
        "type": "item",
        "name": "item_dataset1",
        "description": "item dataset",
        "schemaName": "item_schema",
        "osInfo": {
            "region": "KR",
            "bucket": "aitems",
            "key": "bookmarks-items.csv"
        }
    }'
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    datasetIdString-Dataset ID
    typeString-Dataset type
    • user | item | interaction
      • user: data containing user information (age, gender, etc.)
      • item: data with product-related information (price, release date, category, etc.)
      • interaction: data that captures the history of interactions between users and products
    nameString-Dataset name
    descriptionString-Dataset description
    schemaNameString-Dataset schema name
    statusString-Dataset status
    • enable | waiting | processing | upload_failed | disable | deleting
      • enable: training available
      • waiting, processing: pending
      • upload_failed, disable, deleting: upload failure
    osInfoObject-Information of Object Storage where the data file is stored
    osInfo.regionString-Region of Object Storage where the data file is stored
    • KR
    osInfo.bucketString-Bucket name of Object Storage where the data file is stored
    osInfo.keyString-Path (prefix) of Object Storage where the data file is stored
    connectedServicesArray-Information about service using dataset
    createdDateString-Dataset creation date and time
    updatedDateString-Last update date and time of the dataset

    connectedServices

    The following describes connectedServices.

    FieldTypeRequiredDescription
    serviceIdString-Service ID
    nameString-Service name

    Response status codes

    For response status codes common to all AiTEMS APIs, see Common AiTEMS API response status codes.

    Response example

    The following is a sample example.

    {
        "datasetId": "bu457******",
        "type": "interaction",
        "name": "item_dataset1",
        "description": "item dataset",
        "schemaName": "item_schema",
        "status": "waiting",
        "osInfo": {
            "region": "KR",
            "bucket": "aitems",
            "key": "bookmarks-items.csv"
        },
        "connectedServices": [
            {
                "serviceId": "fboyb******",
                "name": "service"
            },
            {
                "serviceId": "xv94v******",
                "name": "service1"
            },
            {
                "serviceId": "6wxgu******",
                "name": "service3"
            }
        ],
        "createdDate": "2024-07-30T09:49:19.254",
        "updatedDate": "2024-07-30T15:45:54.217"
    }
    

    Was this article helpful?

    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.