Method: projects.locations.collections.engines.assistants.agents.files.import

Agent에 파일을 가져옵니다. 현재는 노코드 에이전트만 지원됩니다.

HTTP 요청

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/files:import

URL은 gRPC 트랜스코딩 문법을 사용합니다.

경로 매개변수

매개변수
parent

string

필수 항목입니다. Agent의 리소스 이름입니다. 형식: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "fileName": string,
  "mimeType": string
}
필드
fileName

string

필수 항목입니다. 파일 이름입니다.

mimeType

string

(선택사항) 파일의 콘텐츠 유형입니다(https://www.iana.org/assignments/media-types/media-types.xhtml 참고).

데이터 소스에서 콘텐츠 유형을 제공하지 않는 경우 이 필드는 필수입니다.

응답 본문

성공한 경우 응답 본문에 ImportAgentFileResponse의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.assist.readwrite

자세한 내용은 Authentication Overview를 참조하세요.