Method: corpora.create

Creates an empty Corpus.

HTTP request

POST https://generativelanguage.googleapis.com/v1beta/corpora

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of Corpus.

Response body

If successful, the response body contains a newly created instance of Corpus.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language.retriever

For more information, see the Authentication Overview.