Upload cycle learning data
- Print
- PDF
Upload cycle learning data
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Uploads cycle learning data.
POST https://aitems.apigw.ntruss.com/api/v1/services/{serviceId}/datasets/{datasetId}
Requests
Request parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
serviceId | Yes | String | Service ID created | |
datasetId | Yes | String | Dataset ID set to the service |
Request body
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
type | Yes | String | Select from user, item, or interaction | Dataset type |
value | Yes | Object[] | Same schema as dataset | Data to upload |
Response
Field name | Type | Description | Remarks |
---|---|---|---|
- | boolean |
Response status
HTTP Status | Desc |
---|---|
200 | OK (Successfully edited) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Examples
Request examples
POST /api/v1/services/49qkb0fbnar/datasets/3r570daoluf
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",
"value": [
{ "ITEM_ID": "1", "CATEGORY": "A"},
{ "ITEM_ID": "5", "CATEGORY": "A"},
{ "ITEM_ID": "6", "CATEGORY": "B"},
{ "ITEM_ID": "11", "CATEGORY": "C"}
]
}
Response examples
true
Was this article helpful?