---
title: "filemeta | Eidos Docs"
description: "SDK signatures, permissions and behavior for filemeta."
source: "https://docs.eidos.space/plugins/api/filemeta/"
lang: "en"
---

# filemeta

Lite API 3.1\. Declare workspace.filemeta.namespaces; patch also needs filemeta.write and contribution write access. Paths are Space-relative. Missing namespaces return an empty object. patch preserves other keys; null is a value and remove deletes keys. Envelopes are limited to 1 MiB; filesystem limits can be smaller. Metadata grants do not grant content writes.

Usage guide: [files](https://docs.eidos.space/plugins/files/). [API index](https://docs.eidos.space/plugins/api/).

Signatures, parameters and return types are generated from the SDK. Optional members are not available in every host and context.

## PluginFileMeta

[Source](https://github.com/mayneyao/eidos/blob/dev/packages/plugin-sdk/src/index.ts#L340)

### PluginFileMeta.read

Supported hosts: Lite

Read the complete namespace object; a missing namespace returns an empty object.

```ts
read(path: string, namespace: string): Promise<FileMetaValues>;
```

| Parameter | Type   | Required |
| --------- | ------ | -------- |
| path      | string | Yes      |
| namespace | string | Yes      |

Returns: `Promise<FileMetaValues>`.

### PluginFileMeta.patch

Supported hosts: Lite

Set or remove selected keys while preserving all other keys.

```ts
patch(path: string, namespace: string, patch: FileMetaPatch): Promise<FileMetaValues>;
```

| Parameter | Type          | Required |
| --------- | ------------- | -------- |
| path      | string        | Yes      |
| namespace | string        | Yes      |
| patch     | FileMetaPatch | Yes      |

Returns: `Promise<FileMetaValues>`.

Related types: [FileMetaValues](https://docs.eidos.space/plugins/api/types/#filemetavalues), [FileMetaPatch](https://docs.eidos.space/plugins/api/types/#filemetapatch).
