basyx-python-sdk icon indicating copy to clipboard operation
basyx-python-sdk copied to clipboard

Implement missing `PATCH` endpoints for Submodels and SubmodelElements

Open zrgt opened this issue 2 months ago • 1 comments

This issue regroups the already reported missing endpoints in #528, #529, #530 and #531 by underlying mechanism rather than endpoint path. Part of #439.

Core issue here is the missing partial update (PATCH) of existing Submodels and SubmodelElements, both in the normal and in the $metadata representation.

Affected endpoints:

  • PATCH /submodels/{submodelIdentifier} (#528)
  • PATCH /submodels/{submodelIdentifier}/$metadata (#529)
  • PATCH /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} (#530)
  • PATCH /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata (#531)

Scope:

  • Define the merge semantics before implementing: which attributes are replaced, how child elements are handled, and which attributes count as metadata
  • One shared update mechanism used by all four routes
  • Support the level query parameter (deep/core) where the specification defines it (all routes except PATCH .../{idShortPath}/$metadata)

Endpoints available via the AAS superpath (/shells/{aasIdentifier}/submodels/...) are covered automatically through the existing redirect.

zrgt avatar Sep 24 '26 11:09 zrgt

Working on this now

hpoeche avatar Nov 19 '26 14:11 hpoeche