update()
Update a resource by its ID.
Usage
update(
id,
data,
)Parameters
id: int-
The identifier of the resource to update.
data: dict-
The new data to apply.
Returns
dict-
The updated resource.
Examples
>>> update(1, {"status": "active"})
{'id': 1, 'status': 'active'}