---
title: "Rename a resource."
method: PATCH
path: "/resources/{id}"
tags: ["Resources"]
---

# Rename a resource.

`PATCH /resources/{id}`

Update the specified file or folder resource record's "name" parameter. The resource is identified by the numeric resource ID that is passed in as the last segment of the URI.

## Headers

- `ev-access-token` string, required
- `ev-api-key` string, required

## Request body

- object
  - `name` string — The new name for the resource (file or folder).

## Response `200`

Successful operation

- ResourceResponse — unresolved $ref

---

[API](https://skmtc.net/prismic/apis/exavault-api.md) · [All operations](https://skmtc.net/prismic/apis/exavault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prismic/exavault-api/revisions/a1bd874b5960/schema)
