app:record:update
Applies a full replacement patch to an existing record and returns the updated record
Options
| Name | Type | Description |
|---|---|---|
org_id | string | The organization ID that scopes the operation |
user_id | string | The caller's user ID recorded in the record history |
schema | string | The name of the schema (database) that contains the table |
table | string | The name of the table that contains the record |
id | string | The unique identifier of the record to update |
record | Record | The full replacement key-value data to apply |
Outputs
| Name | Type | Description |
|---|---|---|
record | Record | The updated record as persisted in the database |
Example
name: Update a record
actions:
- name: updated
component: app:record:update
vars:
org_id: "{{ var.org_id }}"
user_id: "{{ var.user_id }}"
schema: content
table: articles
id: "{{ var.id }}"
record:
status: published
outputs:
article: "{{ updated.record }}"