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
5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 | |