Documentation Index

Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

Upload cycle training data

Prev Next

Available in Classic and VPC

Upload the data to run the cycle training.

Request

This section describes the request format. The method and URI are as follows:

Method URI
POST /services/{serviceId}/datasets/{datasetId}

Request headers

For information about the headers common to all AiTEMS APIs, see AiTEMS request headers.

Request path parameters

You can use the following path parameters with your request:

Field Type Required Description
serviceId String Required Service ID
datasetId String Required Dataset ID set for the service

Request body

You can include the following data in the body of your request:

Field Type Required Description
type String Required 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
value Array Required Data to upload
  • Must be entered in the same schema as the existing dataset

Request example

The request example is as follows:

curl --location --request POST 'https://aitems.apigw.ntruss.com/api/v1/services/49qkb******/datasets/3r570******' \
--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": "user",
    "value": [
        { "USER_ID": "test", "AGE": 20 },
        { "USER_ID": "test1", "AGE": 10 },
        { "USER_ID": "test2", "AGE": 30 }
    ]
}'

Response

This section describes the response format.

Response status codes

For information about the HTTP status codes common to all AiTEMS APIs, see AiTEMS response status codes.

Response example

If the response is successful, the cycle training data is uploaded with 200 OK.