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
|
value |
Array | Required | Data to upload
|
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.