---
title: "metadata.set: Edit Metadata — Film kit command — Kition"
description: "Sets metadata `field` to `value` (or several `fields`) on project `item` or `clip`'s source; one undo step. Name renames the item and Label sets its color label."
canonical: "https://developer.kition.ai/docs/kits/film/commands/metadata.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/metadata.set](https://developer.kition.ai/docs/kits/film/commands/metadata.set)

# metadata.set

**Edit Metadata.** Sets metadata `field` to `value` (or several `fields`) on project `item` or `clip`'s source; one undo step. Name renames the item and Label sets its color label.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `clip` | `integer` | no | an id; in one of several forms of the parameters |
| `field` | `string` | no | for example Name, Label, Description, Scene, Shot, Log Note, Comment, Tape Name, Client, Camera Angle; in one of several forms of the parameters |
| `fields` | `object` | no | in one of several forms of the parameters |
| `item` | `integer` | no | an id; in one of several forms of the parameters |
| `value` | `string` | no | in one of several forms of the parameters |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "metadata.set" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `clip`, `field`, `fields`, `item`, `value`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "clip": {
      "description": "an id; in one of several forms of the parameters",
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "field": {
      "description": "for example Name, Label, Description, Scene, Shot, Log Note, Comment, Tape Name, Client, Camera Angle; in one of several forms of the parameters",
      "type": "string"
    },
    "fields": {
      "additionalProperties": true,
      "description": "in one of several forms of the parameters",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "item": {
      "description": "an id; in one of several forms of the parameters",
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "value": {
      "description": "in one of several forms of the parameters",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
