update_record
Update existing records in Kintone applications by specifying record IDs or unique field values, then modifying field data with structured value formats.
Instructions
kintoneアプリの既存レコードを更新します。更新前に`get_form_fields` や`get_form_layout` でフィールド構造とレイアウトを確認し、利用するフィールドコードが最新であることをチェックしてから操作してください。各フィールドは { "value": ... } の形式で指定します。 例1(レコードIDを指定して更新): { "app_id": 1, "record_id": 1001, "fields": { "文字列1行_0": { "value": "character string is changed" }, "テーブル_0": { "value": [{ "id": 1, "value": { "文字列1行_1": { "value": "character string is changed" } } }]} } }
例2(重複禁止フィールドを指定して更新): { "app_id": 1, "updateKey": { "field": "文字列1行_0", "value": "フィールドの値" }, "fields": { "文字列1行_1": { "value": "character string is changed" }, "テーブル_0": { "value": [{ "id": 1, "value": { "文字列1行_2": { "value": "character string is changed" } } }]} } } レコードIDまたはupdateKeyのいずれかを指定して更新できます。updateKeyを使用する場合は、重複禁止に設定されたフィールドを指定してください。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | kintoneアプリのID | |
| record_id | No | レコードID(updateKeyを使用する場合は不要) | |
| updateKey | No | 重複禁止フィールドを使用してレコードを特定(record_idを使用する場合は不要) | |
| fields | Yes | 更新するフィールド値(各フィールドは { "value": ... } の形式で指定) |