start_content_upload#
- ConnectWisdomService.Client.start_content_upload(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.start_content_upload( contentType='string', knowledgeBaseId='string' )
- Parameters:
contentType (string) –
[REQUIRED]
The type of content to upload.
knowledgeBaseId (string) –
[REQUIRED]
The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- Return type:
dict
- Returns:
Response Syntax
{ 'headersToInclude': { 'string': 'string' }, 'uploadId': 'string', 'url': 'string', 'urlExpiry': datetime(2015, 1, 1) }
Response Structure
(dict) –
headersToInclude (dict) –
The headers to include in the upload.
(string) –
(string) –
uploadId (string) –
The identifier of the upload.
url (string) –
The URL of the upload.
urlExpiry (datetime) –
The expiration time of the URL as an epoch timestamp.
Exceptions
ConnectWisdomService.Client.exceptions.ValidationException
ConnectWisdomService.Client.exceptions.AccessDeniedException
ConnectWisdomService.Client.exceptions.ResourceNotFoundException