Editing service update cycle
- Print
- PDF
Editing service update cycle
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Edit the service update cycle.
PUT https://aitems.apigw.ntruss.com/api/v1/services/{serviceId}/interval
Requests
Request parameters
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
serviceId | Yes | String | Service ID created |
Request bodies
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
term | Yes | String | hour1, hour3, hour6, hour12 | Cycle to set |
Responses
Field | Type | Description | Note |
---|---|---|---|
serviceId | String | Service ID | |
name | String | Service name | |
description | String | Service description | |
status | String | Service status | |
datasets[].datasetId | String | Dataset ID set to the service | |
datasets[].type | String | Dataset type set to the service | |
datasets[].name | String | Dataset name set to the service | |
datasets[].schemaName | String | Dataset schema name set to the service | |
datasets[].status | String | Dataset status set to the service | |
datasets[].createdDate | String | Dataset creation date set to the service | |
datasets[].updatedDate | String | Last update of dataset set to the service | |
hpConfig.is_enabled | Boolean | HPO setting status | |
hpConfig.{option} | String | Set HPO value | |
infers[].dataType | String | Learning result dataset type | |
infers[].trainVersion | String | Learning result version | |
infers[].status | String | Learning result status | |
infers[].rowCount | String | Number of learning results | |
createdDate | String | Service creation date | |
updatedDate | String | Last update | |
type | String | Service type | |
learningInterval | String | Update cycle | |
scheduledDate | String | Update base time |
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/interval
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}
{
"term": "hour1"
}
Response examples
{
"name": "test",
"serviceId": "49qkb0fbnar",
"description": "description",
"status": "enable",
"datasets": [
{
"datasetId": "5mrdfbvsndz",
"name": "item-dataset",
"type": "item",
"schemaName": "ItemInfo",
"status": "upToDate"
},
{
"datasetId": "e85uv9966wf",
"name": "user-dataset",
"type": "user",
"schemaName": "UserInfo",
"status": "upToDate"
},
{
"datasetId": "hscm7bud24p",
"name": "log-dataset",
"type": "interaction",
"schemaName": "LogInfo",
"status": "upToDate"
}
],
"works": [
{
"type": "recommend",
"hpConfigs": {}
}
],
"infers": [
{
"dataType": "pop",
"trainVersion": "9fn93e2nsd2",
"status": "updateFailed",
"createdDate": "2021-09-02T12:34:00.043",
"updatedDate": "2021-09-02T12:34:00.043"
},
{
"dataType": "relatedItem",
"trainVersion": "g9o0abr81l6",
"status": "enable",
"createdDate": "2021-09-02T12:34:00.043",
"updatedDate": "2021-09-02T12:35:00.03"
},
{
"dataType": "personalRecommend",
"trainVersion": "g9o0abr81l6",
"status": "enable",
"createdDate": "2021-09-02T12:34:00.043",
"updatedDate": "2021-09-02T12:35:00.03"
}
],
"createdDate": "2021-08-21T15:47:58.302",
"updatedDate": "2021-09-03T16:22:07.509"
"type": "interval",
"learningInterval": "hour6",
"scheduledDate": "2021-11-18T15:17:12.968"
}
Was this article helpful?