Gemini Files & Cache
Register Gemini files
Registers files from a supported source using Gemini JSON.
Registers files from a supported source using Gemini JSON. The service validates the source and request fields. Resources can only be read, referenced, changed, or deleted in their owning Workspace.
curl -X POST "https://example.com/v1beta/files:register" \ -H "Content-Type: application/json" \ -d '{}'{ "name": "string", "displayName": "string", "mimeType": "string", "sizeBytes": "string", "uri": "string", "state": "string", "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z", "expirationTime": "2019-08-24T14:15:22Z", "error": {}}AuthorizationBearer <token>
API Key authentication. Create or manage API keys in Dashboard > API > API Keys.
In: header
Query Parameters
key?string
API key alternative to Bearer or x-goog-api-key.
Headers
Idempotency-Key?string
Reuse the same key and request body when recovering a create response. A different body with the same key returns a conflict.
Request Body
application/json
Gemini file registration request. Use only sources and fields accepted by the service; registration does not upload local bytes.
Response
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json