> For the complete documentation index, see [llms.txt](https://mgcrea.gitbook.io/redux-rest-resource/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mgcrea.gitbook.io/redux-rest-resource/advanced/assignupdateresponse.md).

# Assign Update Response

By default, the response of the update action (`PATCH` request) will be ignored.

If you want to assign the response body (eg. for complex populated updates), you can use the `assignResponse` reducer option.

* Usually you will want to configure it for a specific action:

```javascript
export const {types, actions, reducers} = createResource({
  name: 'user',
  url: 'https://foo.com/users/:id',
  actions: {
    update: {
      assignResponse: true
    }
  }
});
```

* Or as an one-time override at action call-time:

```javascript
actions.updateUser({firstName: 'Olivier'}, {query: {pleaseSendResponse: true}, assignResponse: true});
```
