ConnectWisdomService / Client / start_content_upload

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',
    presignedUrlTimeToLive=123
)
Parameters:
  • contentType (string) –

    [REQUIRED]

    The type of content to upload.

  • knowledgeBaseId (string) –

    [REQUIRED]

    The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you’re storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.

  • presignedUrlTimeToLive (integer) – The expected expiration time of the generated presigned URL, specified in minutes.

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