Update Content
connectwisdomservice_update_content | R Documentation |
Updates information about the content¶
Description¶
Updates information about the content.
Usage¶
connectwisdomservice_update_content(contentId, knowledgeBaseId,
metadata, overrideLinkOutUri, removeOverrideLinkOutUri, revisionId,
title, uploadId)
Arguments¶
contentId
[required] The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
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
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.
overrideLinkOutUri
The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing
overrideLinkOurUri
, exclude this argument and setremoveOverrideLinkOutUri
to true.removeOverrideLinkOutUri
Unset the existing
overrideLinkOutUri
if it exists.revisionId
The
revisionId
of the content resource to update, taken from an earlier call toget_content
,get_content_summary
,search_content
, orlist_contents
. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws aPreconditionFailedException
.title
The title of the content.
uploadId
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"
)
)
)