> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drime.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Update File Entry

> Rename or update file/folder details

## Overview

Updates the name or description of a file or folder.

## Path Parameters

<ParamField path="entryId" type="integer" required>
  The file entry ID to update
</ParamField>

## Query Parameters

<ParamField query="workspaceId" type="integer">
  Workspace context
</ParamField>

## Request Body

<ParamField body="name" type="string">
  New name for the entry
</ParamField>

<ParamField body="description" type="string">
  New description for the entry
</ParamField>

## Response

<ResponseField name="fileEntry" type="object">
  The updated file entry object
</ResponseField>

<ResponseField name="status" type="string">
  Request status (`success`)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT https://app.drime.cloud/api/v1/file-entries/485529678 \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "vacation-photo.jpg",
      "description": "Beach sunset from our trip"
    }'
  ```

  ```javascript JavaScript theme={null}
  const entryId = 485529678;

  const response = await fetch(
    `https://app.drime.cloud/api/v1/file-entries/${entryId}`,
    {
      method: 'PUT',
      headers: {
        'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        name: 'vacation-photo.jpg',
        description: 'Beach sunset from our trip'
      })
    }
  );

  const { fileEntry } = await response.json();
  ```

  ```python Python theme={null}
  import requests

  entry_id = 485529678

  response = requests.put(
      f'https://app.drime.cloud/api/v1/file-entries/{entry_id}',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
      json={
          'name': 'vacation-photo.jpg',
          'description': 'Beach sunset from our trip'
      }
  )

  file_entry = response.json()['fileEntry']
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "status": "success",
    "fileEntry": {
      "id": 485529678,
      "name": "vacation-photo.jpg",
      "description": "Beach sunset from our trip",
      "type": "image",
      "updated_at": "2024-01-20T15:30:00.000000Z"
    }
  }
  ```
</ResponseExample>
