---
title: "Rename a project asset"
method: PATCH
path: "/projects/{projectId}/assets/{assetId}"
tags: ["Projects"]
---

# Rename a project asset

`PATCH /projects/{projectId}/assets/{assetId}`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/projects/{projectId}/assets/{assetId}`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, uuid, required
- `assetId` string, uuid, required

## Request body

- object
  - `name` string, required

## Response `200`

- object
  - `asset` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `mimeType` string, nullable, required
    - `fileSize` integer, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `authorName` string, nullable, required
    - `isMine` boolean, required
    - `canManage` boolean, required: Rename / delete: the author or whoever manages the project.

## Other responses

- `400`: Validation error or malformed id.
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: Only the author or a project manager can change this asset.
- `404`: Not found, or the caller is not authorized to access this resource.

---

[API](https://skmtc.dev/atako/apis/atako-api.md) · [All operations](https://skmtc.dev/atako/apis/atako-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atako/apis/atako-api/revisions/aa555c56fbd7?raw)
