start_content_upload
async
¶
start_content_upload(
knowledge_base_id: UuidOrArn,
content_type: ContentType,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
presigned_url_time_to_live: Optional[TimeToLive] = None,
) -> StartContentUploadResponse
Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
content_type(ContentType) –The type of content to upload.
-
presigned_url_time_to_live(Optional[TimeToLive], default:None) –The expected expiration time of the generated presigned URL, specified in minutes.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ResourceNotFoundException–The specified resource does not exist.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/async_q_connect.py
5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 | |