update_content
¶
update_content(
knowledge_base_id: UuidOrArn,
content_id: UuidOrArn,
*,
config_overrides: Optional[WisdomClientConfig] = None,
revision_id: Optional[NonEmptyString] = None,
title: Optional[ContentTitle] = None,
override_link_out_uri: Optional[Uri] = None,
remove_override_link_out_uri: Optional[bool] = None,
metadata: Optional[ContentMetadata] = None,
upload_id: Optional[UploadId] = None,
) -> UpdateContentResponse
Updates information about the content.
Parameters:
-
knowledge_base_id(UuidOrArn) –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
-
content_id(UuidOrArn) –The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
revision_id(Optional[NonEmptyString], default:None) –The
revisionIdof the content resource to update, taken from an earlier call toGetContent,GetContentSummary,SearchContent, orListContents. 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(Optional[ContentTitle], default:None) –The title of the content.
-
override_link_out_uri(Optional[Uri], default:None) –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 setremoveOverrideLinkOutUrito true. -
remove_override_link_out_uri(Optional[bool], default:None) –Unset the existing
overrideLinkOutUriif it exists. -
metadata(Optional[ContentMetadata], default:None) –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.
-
upload_id(Optional[UploadId], default:None) –A pointer to the uploaded asset. This value is returned by StartContentUpload.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
PreconditionFailedException–The provided
revisionIddoes not match, indicating the content has been modified since it was last read. -
ResourceNotFoundException–The specified resource does not exist.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wisdom/_services/wisdom.py
2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 | |