Upload cycle training data
- Print
- PDF
Upload cycle training data
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Upload the data to run the cycle training.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
POST | /services/{serviceId}/datasets/{datasetId} |
Request headers
For headers common to all AiTEMS APIs, see Common AiTEMS headers.
Request path parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
serviceId | String | Required | Service ID
|
datasetId | String | Required | Dataset ID set for the service
|
Request body
The following describes the request body.
Field | Type | Required | Description |
---|---|---|---|
type | String | Required | Dataset type
|
value[] | Array | Required | Data to upload
|
Request example
The following is a sample request.
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
The following describes the response format.
Response status codes
For response status codes common to all AiTEMS APIs, see Common AiTEMS API response status codes.
Was this article helpful?