Botdefinition, botconfig 및 botfunction 파일과 봇 아이콘을 로컬 서버에 업로드하고 봇 API 가져오기에 사용되는 파일 ID를 가져오는 데 사용됩니다. 파일을 별도로 업로드해야 합니다. POST https://{{host}}/api/public/uploadfile
		 
	 
		
			쿼리 매개 변수
| 매개 변수 | 설명 | 
| host | 환경 URL(예: https://bots.kore.ai) | 
본문 매개 변수
전달할 매개 변수는 필요한 파일 ID에 따라 달라집니다.
봇 정의 파일 Id의 경우
| 매개 변수 | 설명 | 
| file | Bottdefinition.json 업로드 | 
| fileContext | bulkImport | 
| fileExtension | json | 
		 
	 
		
			권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {JWT}
		 
	 
		
			샘플 요청
curl -X POST \
  https://{{host}}/api/public/uploadfile \
  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \
  -H 'content-type: multipart/form-data' \
  -F file=@botDefinition.json \
  -F fileContext=bulkImport \
  -F fileExtension=json
		 
	 
		
			샘플 응답
{
    "fileId": "5c077d28d28e06c112681656",
    "hash": "c275df72765efb7de332e7d54300cb12de66b78e"
}