---
title: "POST /view/refresh"
method: POST
path: "/view/refresh"
tags: ["view"]
---

# POST /view/refresh

`POST /view/refresh`

Refresh view(s) by name, collection id, or version id.

## Query parameters

- `name` string
- `collection_id` string
- `version_id` string
- `get_inactive` string

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `view_refresh` removed and replaced with `refresh_view`
- **2025-08-12** `9b34d7c2f707` — 1 warning, 1 info
  - deleted the `query` request parameter `schema_root`
  - added the new optional `query` request parameter `collection_id`
- **2025-06-02** `60812f5416c5` — 1 warning, 2 info
  - deleted the `query` request parameter `collection_id`
  - api operation id `refresh_view` removed and replaced with `view_refresh`
  - added the new optional `query` request parameter `schema_root`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/view/refresh/post.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/bf2e90fa690e/schema)
