Edit service

Prev Next

Available in Classic and VPC

Edit the name and description of a service.

Request

The following describes the request format for the endpoint. The request format is as follows:

Method URI
PUT /services/{serviceId}

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

Request body

The following describes the request body.

Field Type Required Description
name Array Required Service name
  • 3 to 20 characters, including English letters, numbers, and the special character "_" and "_", and must begin with an English letter or "_"
description String Optional Service description
  • 0 - 100 characters

Request example

The following is a sample request.

curl --location --request PUT 'https://aitems.apigw.ntruss.com/api/v1/services/6wxgu******' \
--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 '{
    "name": "service3",
    "description": "test"
}'

Response

The following describes the response format.

Response body

The following describes the response body.

Field Type Required Description
serviceId String - Service ID
name String - Service name
description String - Service description
status String - Service status
  • scheduled | scheduledLearning | learnable | learning | deleting | deleted | disable | drafted | requestLearning | datasetRequired
    • scheduled: scheduled
    • scheduledLearning: scheduled training in progress
    • learnable: trainable
    • learning: training in progress
    • deleting: deleting
    • deleted: deleted
    • disable: training unavailable
    • drafted: draft status
    • requestLearning: training requested
    • datasetRequired: no dataset specified after service creation
datasets Array - Information of dataset set to service
hpConfig Object - Hyperparameter optimization (HPO) settings information
hpConfig.is_enabled Boolean - HPO configuration status
  • true | false
    • true: HPO configured, optimal training models can be implemented
    • false: HPO not configured, trained by AiTEMS' own internal algorithms
hpConfig.{option} String, Long, Boolean - Configured HPO value
  • See HPO for value details
infers Array - Training result information
  • Displayed only if type is interval
createdDate String - Service creation date and time
updatedDate String - Last update date and time of the service
type String - Service type
  • batch | interval
    • batch: one-time training upon execution
    • interval: Retrain at regular intervals after execution
learningInterval String - Dataset update cycle
scheduledDate String - Dataset update scheduling time

datasets

The following describes datasets.

Field Type Required Description
datasetId String - Dataset ID set to the service
type String - Dataset type set to the service
  • 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
name String - Dataset name set to the service
schemaName String - Dataset schema name set to the service
status String - Status of dataset set to the service
  • learnable | disable | uploading | updateRequired
    • learnable: training available
    • disable: training unavailable
    • uploading: uploading
    • updatedRequired: updated dataset registration required (automatically registered when training)
createdDate String - Creation date and time of dataset set to the service
updatedDate String - Last update date and time of dataset set to the service

infers

The following describes infers.

Field Type Required Description
dataType String - Dataset type of training result
  • 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
trainVersion String - Training result version
status String - Training result status
  • enable | waiting | pending | processing | updateFailed | disable
    • enable: update available
    • waiting: waiting for update
    • pending: pending update
    • processing: updating
    • updateFailed: update failed
    • disable: update unavailable
rowCount String - Result data count
createdDate String - Data creation date and time
updatedDate String - Last update date and time of data

Response status codes

For response status codes common to all AiTEMS APIs, see Common AiTEMS API response status codes.

Response example

The following is a sample example.

{
    "serviceId": "6wxgu******",
    "name": "service3",
    "description": "test",
    "status": "learnable",
    "datasets": [
        {
            "datasetId": "g8rf6******",
            "type": "item",
            "name": "item_dataset",
            "schemaName": "item_schema",
            "status": "learnable",
            "createdDate": "2024-07-29T16:46:35.968",
            "updatedDate": "2024-07-30T08:57:35.209"
        },
        {
            "datasetId": "bu457******",
            "type": "interaction",
            "name": "interaction_dataset",
            "schemaName": "interaction_schema",
            "status": "learnable",
            "createdDate": "2024-07-30T09:49:19.254",
            "updatedDate": "2024-07-30T09:49:35.364"
        },
        {
            "datasetId": "oeq4i******",
            "type": "user",
            "name": "user_dataset",
            "schemaName": "user_schema",
            "status": "learnable",
            "createdDate": "2024-07-30T08:58:00.662",
            "updatedDate": "2024-07-30T08:58:35.205"
        }
    ],
    "hpConfig": {
        "is_enabled": false
    },
    "infers": [],
    "createdDate": "2024-07-30T10:28:57.825",
    "updatedDate": "2024-07-30T13:16:36.734",
    "type": "interval",
    "learningInterval": "hour1",
    "scheduledDate": "2024-07-30T11:25:36.558"
}