Start Content Upload
connectwisdomservice_start_content_upload | R Documentation |
Get a URL to upload content to a knowledge base¶
Description¶
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 create_content
to finalize
the content creation process or update_content
to modify an existing
resource. You can only upload content to a knowledge base of type
CUSTOM.
Usage¶
connectwisdomservice_start_content_upload(contentType, knowledgeBaseId,
presignedUrlTimeToLive)
Arguments¶
contentType |
[required] The type of content to upload. |
knowledgeBaseId |
[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 |
The expected expiration time of the generated presigned URL, specified in minutes. |
Value¶
A list with the following syntax:
list(
headersToInclude = list(
"string"
),
uploadId = "string",
url = "string",
urlExpiry = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$start_content_upload(
contentType = "string",
knowledgeBaseId = "string",
presignedUrlTimeToLive = 123
)