[azure-ai-contentunderstanding] update_analyzer docs should clarify which properties are updatable
Description
The update_analyzer method in ContentUnderstandingClient currently has documentation that says only "Update analyzer properties" without specifying which properties can actually be updated.
The underlying REST API uses PATCH with application/merge-patch+json, and only description and tags are accepted by the service. All other properties (models, field_schema, config, base_analyzer_id, dynamic_field_schema, processing_location, knowledge_sources) are create-only — they are silently ignored by the server even though it returns HTTP 200.
Requested Improvements
-
API doc (docstring): Add documentation to
update_analyzerlisting the updatable properties and noting that other properties requirebegin_create_analyzerwithallow_replace=True. -
Samples: If an update analyzer sample exists, add a note explaining that only
descriptionandtagsare updatable via this method, and referencebegin_create_analyzerwithallow_replace=Truefor changingmodels,field_schema, etc.
Updatable Properties
| Property | Updatable via update_analyzer (PATCH)? |
|---|---|
description |
Yes |
tags |
Yes |
models |
No — silently ignored |
field_schema |
No — silently ignored |
config |
No — silently ignored |
base_analyzer_id |
No — silently ignored |
dynamic_field_schema |
No — silently ignored |
processing_location |
No — silently ignored |
knowledge_sources |
No — silently ignored |
Workaround
To change create-only properties on an existing analyzer, use begin_create_analyzer with allow_replace=True. This calls PUT (full resource replacement) instead of PATCH.
Related
- Azure/azure-sdk-for-net#57215 — customer report of
UpdateAnalyzerAsyncnot updatingmodels - Azure/azure-sdk-for-net#57231 — .NET documentation issue
- Azure/azure-sdk-for-java#48469 — Java documentation issue
- Azure/azure-sdk-for-js#37728 — JavaScript documentation issue