df_write_measure
Create, replace, or update measures in DataForge project versions. Choose mode to add, overwrite, or patch only supplied fields.
Instructions
WRITES TO DATAFORGE. Create, replace or update a measure in a project version. mode=create adds a new one; mode=replace (PUT) overwrites it and RESETS every optional field you do not pass; mode=update (PATCH) changes only the fields you pass. replace and update require measure_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Entity id; must match the path id if supplied | |
| mode | No | create = POST a new entity; replace = PUT, which resets every optional field not supplied; update = PATCH, which changes only supplied fields. | create |
| block | No | ||
| group | No | ||
| status | No | ||
| comment | No | ||
| formula | No | References are written as [Element name] | |
| required | No | ||
| relevance | No | ||
| variation | No | ||
| measure_id | No | Required for replace/update | |
| project_id | Yes | DataForge project id | |
| version_id | Yes | Project version id | |
| visibility | No | ||
| measure_name | No | Unique among measures of the version | |
| measure_type | No | Reference label, English or Russian: Base / Calculated | |
| restrictions | No | ||
| idempotency_key | No | Optional UUID v4. Reusing a key within 24 hours replays the original response instead of applying the change twice. One is generated automatically when omitted. | |
| original_object | No | ||
| original_source | No | ||
| display_data_type | No | Number, Text, Date, ... | |
| measure_description | No | ||
| original_source_type | No | ||
| responsible_for_data | No | ||
| report_for_verification | No |