Create Content
connectwisdomservice_create_content | R Documentation |
Creates Wisdom content¶
Description¶
Creates Wisdom content. Before to calling this API, use
start_content_upload
to upload an asset.
Usage¶
connectwisdomservice_create_content(clientToken, knowledgeBaseId,
metadata, name, overrideLinkOutUri, tags, title, uploadId)
Arguments¶
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
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.
metadata
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
name
[required] The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the
search_content
API.overrideLinkOutUri
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
tags
The tags used to organize, track, or control access for this resource.
title
The title of the content. If not set, the title is equal to the name.
uploadId
[required] A pointer to the uploaded asset. This value is returned by
start_content_upload
.
Value¶
A list with the following syntax:
list(
content = list(
contentArn = "string",
contentId = "string",
contentType = "string",
knowledgeBaseArn = "string",
knowledgeBaseId = "string",
linkOutUri = "string",
metadata = list(
"string"
),
name = "string",
revisionId = "string",
status = "CREATE_IN_PROGRESS"|"CREATE_FAILED"|"ACTIVE"|"DELETE_IN_PROGRESS"|"DELETE_FAILED"|"DELETED"|"UPDATE_FAILED",
tags = list(
"string"
),
title = "string",
url = "string",
urlExpiry = as.POSIXct(
"2015-01-01"
)
)
)