데이터셋 생성
- 인쇄
- PDF
데이터셋 생성
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
데이터셋을 생성합니다.
POST https://aitems.apigw.ntruss.com/api/v1/datasets
요청
요청 바디
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
type | Yes | String | user, item, interaction 중 하나를 선택 | 데이터셋 타입 |
name | Yes | String | - 영문자, 붙임 문자( _ )로 시작 - 영문자, 숫자, 붙임 문자( _ ), 붙임표( - ) 사용 가능 - 최소 3자 최대 20자로 입력 | 데이터셋 이름 |
description | Yes | String | 0 ~ 100자까지 입력 | 데이터셋 설명 |
schemaName | Yes | String | 생성된 스키마 이름 | 생성할 데이터셋의 스키마 선택 |
osInfo.region | Yes | String | KR, EN, JP .. | 오브젝트 스토리지 리전 |
osInfo.bucket | Yes | String | 오브젝트 스토리지 버킷 이름 | |
osInfo.key | Yes | String | 오브젝트 스토리지 키 |
응답
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
datasetId | String | 데이터셋 ID | |
type | String | 데이터셋 유형 | |
name | String | 데이터셋 이름 | |
description | String | 데이터셋 설명 | |
schemaName | String | 스키마 이름 | |
status | String | 서비스 상태 | |
osInfo.region | String | 오브젝트 스토리지 리전 | |
osInfo.bucket | String | 오브젝트 스토리지 버킷 이름 | |
osInfo.key | String | 오브젝트 스토리지 키 | |
connectedService[].serviceId | String | 데이터셋 사용중인 서비스 ID | |
connectedService[].name | String | 데이터셋 사용중인 서비스 이름 | |
createdDate | String | 데이터셋 생성일 | |
updatedDate | String | 최종 업데이트 |
응답 Status
HTTP Status | Desc |
---|---|
201 | Created(생성 완료) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
예시
요청 예시
POST /api/v1/datasets
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",
"name": "item_dataset",
"description": "abc",
"schemaName": "test_item",
"osInfo": {
"region": "KR",
"bucket": "aitems-820431800",
"key": "bookmarks-items.csv"
}
}
응답 예시
{
"type": "item",
"name": "item_dataset",
"description": "abc",
"datasetId": "3vewbw8r9r9",
"schemaName": "test_item",
"status": "enable",
"osInfo": {
"region": "KR",
"bucket": "aitems-820431800",
"key": "bookmarks-items.csv"
},
"connectedService": [],
"createdDate": "2021-08-21T15:47:58.302",
"updatedDate": "2021-09-03T16:22:07.509"
}
이 문서가 도움이 되었습니까?