## update()


Update a resource by its ID.


Usage


``` python
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

``` python
>>> update(1, {"status": "active"})
```

{'id': 1, 'status': 'active'}
