Skip to content

Commit

Permalink
Add return_fields_by_field_id to Table.update
Browse files Browse the repository at this point in the history
previously failing test now passes
  • Loading branch information
marks committed Nov 25, 2023
1 parent f0de804 commit ccc82e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyairtable/api/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def update(
fields: WritableFields,
replace: bool = False,
typecast: bool = False,
return_fields_by_field_id: bool = False,
) -> RecordDict:
"""
Update a particular record ID with the given fields.
Expand All @@ -388,7 +389,11 @@ def update(
updated = self.api.request(
method=method,
url=self.record_url(record_id),
json={"fields": fields, "typecast": typecast},
json={
"fields": fields,
"typecast": typecast,
"returnFieldsByFieldId": return_fields_by_field_id,
},
)
return assert_typed_dict(RecordDict, updated)

Expand Down

0 comments on commit ccc82e5

Please sign in to comment.