---
title: "Rename a view, replace its body, or both (MDF-38)"
method: PATCH
path: "/data-library/saved-views/{id}"
tags: ["DataLibrary"]
---

# Rename a view, replace its body, or both (MDF-38)

`PATCH /data-library/saved-views/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/data-library/saved-views/{id}`
- Auth: none declared

## Response `200`

The changed view

## Other responses

- `404`: No view with this id belongs to the caller
- `409`: The caller already has a view with this name on this tab

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
