metadata_set
Set a JSON metadata namespace on an entity only when the document PID and predecessor fingerprint match, safely storing engineering properties like part numbers or materials.
Instructions
Set one bounded schema-agnostic JSON metadata namespace only when caller document PID and predecessor fingerprint still match.
Side-effects: Attaches XData/extension dictionary metadata to entity. Disambiguation: Use to store engineering properties (part numbers, materials) on entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | JSON-serializable metadata payload | |
| namespace | Yes | Schema-agnostic metadata namespace key to set | |
| document_pid | Yes | Persistent document identifier matching active CAD drawing | |
| semantic_pid | Yes | Persistent semantic PID of the entity | |
| expected_parent_fp | Yes | Expected predecessor semantic fingerprint for optimistic locking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||