> This page is for Platform, version V4 Experimental.
> For other versions, use one of these documentation indexes:
> - V4 (default): https://developer.staging.frame.io/platform/v4/llms.txt
> - V4 Experimental: https://developer.staging.frame.io/platform/v4-experimental/llms.txt
> - Legacy: https://developer.staging.frame.io/platform/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.staging.frame.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.staging.frame.io/_mcp/server.

# Update metadata across multiple files

PATCH https://api.frame.io/v4/accounts/{account_id}/projects/{project_id}/metadata/values
Content-Type: application/json

Update metadata values across multiple files.

This endpoint has been added to `Current Version` of the API.

Please see [https://developer.adobe.com/frameio/api/current/#tag/Files/operation/metadata.bulk\_update](https://developer.adobe.com/frameio/api/current/#tag/Files/operation/metadata.bulk_update).

Rate Limits: 10 calls per 1.00 minute(s) per account\_user

Reference: https://developer.staging.frame.io/platform/api-reference/metadata/bulk-update

## Request

### Path parameters

- `account_id` (string, required)
- `project_id` (string, required)

### Headers

- `api-version` (enum, required)
  - Allowed values: `experimental`

### Body (application/json)

This endpoint expects a BulkUpdateMetadataParams.

- `data` (BulkUpdateMetadataParamsData, required)

## Response

### 204

No Content

## Errors

### 400 Bad Request Error

Bad Request

- `errors` (list of BadRequestErrorsItems, required)

### 401 Unauthorized Error

Unauthorized

- `errors` (list of UnauthorizedErrorsItems, required)

### 403 Forbidden Error

Forbidden

- `errors` (list of ForbiddenErrorsItems, required)

### 404 Not Found Error

Not Found

- `errors` (list of NotFoundErrorsItems, required)

### 422 Unprocessable Entity Error

Unprocessable Entity

- `errors` (list of UnprocessableEntityErrorsItems, required)

### 429 Too Many Requests Error

Too Many Requests

- `errors` (list of TooManyRequestsErrorsItems, required)

## Types

### BulkUpdateMetadataParamsData

- `file_ids` (list of string, required) — Files for bulk updates
- `values` (list of BulkUpdateMetadataParamsDataValuesItems, required) — Metadata field and value mapping params. Note: Select and MultiSelect field values should be passed as lists, eg: \[\<uuid>]. Users and MultiUser values should be passed as lists formatted as follows: \[%\{id: \<user\_id>, type: "user"}, %\{id: \<user\_group\_id>, type: "account\_user\_group"}

### BadRequestErrorsItems

- `detail` (string, required)
- `source` (BadRequestErrorsItemsSource, optional)
- `title` (string, optional)

### UnauthorizedErrorsItems

- `detail` (string, required)
- `source` (UnauthorizedErrorsItemsSource, optional)
- `title` (string, optional)

### ForbiddenErrorsItems

- `detail` (string, required)
- `source` (ForbiddenErrorsItemsSource, optional)
- `title` (string, optional)

### NotFoundErrorsItems

- `detail` (string, required)
- `source` (NotFoundErrorsItemsSource, optional)
- `title` (string, optional)

### UnprocessableEntityErrorsItems

- `detail` (string, required)
- `source` (UnprocessableEntityErrorsItemsSource, optional)
- `title` (string, optional)

### TooManyRequestsErrorsItems

- `detail` (string, required)
- `source` (TooManyRequestsErrorsItemsSource, optional)
- `title` (string, optional)

### BulkUpdateMetadataParamsDataValuesItems

- `field_definition_id` (string, required)
- `value` (any, required)

### BadRequestErrorsItemsSource

- `pointer` (string, optional)

### UnauthorizedErrorsItemsSource

- `pointer` (string, optional)

### ForbiddenErrorsItemsSource

- `pointer` (string, optional)

### NotFoundErrorsItemsSource

- `pointer` (string, optional)

### UnprocessableEntityErrorsItemsSource

- `pointer` (string, optional)

### TooManyRequestsErrorsItemsSource

- `pointer` (string, optional)

## Examples

**Request**

```json
{
  "data": {
    "file_ids": [
      "2afb4e64-0d7f-4b2e-bb23-4a5f30be3214",
      "2927e0d7-e0bc-4820-be13-258f89636a55"
    ],
    "values": [
      {
        "field_definition_id": "e29309bb-2686-4e75-9609-e3db3424546f",
        "value": "active"
      },
      {
        "field_definition_id": "c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30",
        "value": 5
      },
      {
        "field_definition_id": "d632ddd7-8295-4fd4-b952-1610632972d5",
        "value": "16116057-3da7-4dc9-9230-f6b1efb7e83b"
      }
    ]
  }
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values"

payload = { "data": {
        "file_ids": ["2afb4e64-0d7f-4b2e-bb23-4a5f30be3214", "2927e0d7-e0bc-4820-be13-258f89636a55"],
        "values": [
            {
                "field_definition_id": "e29309bb-2686-4e75-9609-e3db3424546f",
                "value": "active"
            },
            {
                "field_definition_id": "c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30",
                "value": 5
            },
            {
                "field_definition_id": "d632ddd7-8295-4fd4-b952-1610632972d5",
                "value": "16116057-3da7-4dc9-9230-f6b1efb7e83b"
            }
        ]
    } }
headers = {
    "api-version": "experimental",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values';
const options = {
  method: 'PATCH',
  headers: {'api-version': 'experimental', 'Content-Type': 'application/json'},
  body: '{"data":{"file_ids":["2afb4e64-0d7f-4b2e-bb23-4a5f30be3214","2927e0d7-e0bc-4820-be13-258f89636a55"],"values":[{"field_definition_id":"e29309bb-2686-4e75-9609-e3db3424546f","value":"active"},{"field_definition_id":"c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30","value":5},{"field_definition_id":"d632ddd7-8295-4fd4-b952-1610632972d5","value":"16116057-3da7-4dc9-9230-f6b1efb7e83b"}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values"

	payload := strings.NewReader("{\n  \"data\": {\n    \"file_ids\": [\n      \"2afb4e64-0d7f-4b2e-bb23-4a5f30be3214\",\n      \"2927e0d7-e0bc-4820-be13-258f89636a55\"\n    ],\n    \"values\": [\n      {\n        \"field_definition_id\": \"e29309bb-2686-4e75-9609-e3db3424546f\",\n        \"value\": \"active\"\n      },\n      {\n        \"field_definition_id\": \"c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30\",\n        \"value\": 5\n      },\n      {\n        \"field_definition_id\": \"d632ddd7-8295-4fd4-b952-1610632972d5\",\n        \"value\": \"16116057-3da7-4dc9-9230-f6b1efb7e83b\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("api-version", "experimental")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["api-version"] = 'experimental'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"data\": {\n    \"file_ids\": [\n      \"2afb4e64-0d7f-4b2e-bb23-4a5f30be3214\",\n      \"2927e0d7-e0bc-4820-be13-258f89636a55\"\n    ],\n    \"values\": [\n      {\n        \"field_definition_id\": \"e29309bb-2686-4e75-9609-e3db3424546f\",\n        \"value\": \"active\"\n      },\n      {\n        \"field_definition_id\": \"c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30\",\n        \"value\": 5\n      },\n      {\n        \"field_definition_id\": \"d632ddd7-8295-4fd4-b952-1610632972d5\",\n        \"value\": \"16116057-3da7-4dc9-9230-f6b1efb7e83b\"\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values")
  .header("api-version", "experimental")
  .header("Content-Type", "application/json")
  .body("{\n  \"data\": {\n    \"file_ids\": [\n      \"2afb4e64-0d7f-4b2e-bb23-4a5f30be3214\",\n      \"2927e0d7-e0bc-4820-be13-258f89636a55\"\n    ],\n    \"values\": [\n      {\n        \"field_definition_id\": \"e29309bb-2686-4e75-9609-e3db3424546f\",\n        \"value\": \"active\"\n      },\n      {\n        \"field_definition_id\": \"c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30\",\n        \"value\": 5\n      },\n      {\n        \"field_definition_id\": \"d632ddd7-8295-4fd4-b952-1610632972d5\",\n        \"value\": \"16116057-3da7-4dc9-9230-f6b1efb7e83b\"\n      }\n    ]\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values', [
  'body' => '{
  "data": {
    "file_ids": [
      "2afb4e64-0d7f-4b2e-bb23-4a5f30be3214",
      "2927e0d7-e0bc-4820-be13-258f89636a55"
    ],
    "values": [
      {
        "field_definition_id": "e29309bb-2686-4e75-9609-e3db3424546f",
        "value": "active"
      },
      {
        "field_definition_id": "c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30",
        "value": 5
      },
      {
        "field_definition_id": "d632ddd7-8295-4fd4-b952-1610632972d5",
        "value": "16116057-3da7-4dc9-9230-f6b1efb7e83b"
      }
    ]
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'api-version' => 'experimental',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values");
var request = new RestRequest(Method.PATCH);
request.AddHeader("api-version", "experimental");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"data\": {\n    \"file_ids\": [\n      \"2afb4e64-0d7f-4b2e-bb23-4a5f30be3214\",\n      \"2927e0d7-e0bc-4820-be13-258f89636a55\"\n    ],\n    \"values\": [\n      {\n        \"field_definition_id\": \"e29309bb-2686-4e75-9609-e3db3424546f\",\n        \"value\": \"active\"\n      },\n      {\n        \"field_definition_id\": \"c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30\",\n        \"value\": 5\n      },\n      {\n        \"field_definition_id\": \"d632ddd7-8295-4fd4-b952-1610632972d5\",\n        \"value\": \"16116057-3da7-4dc9-9230-f6b1efb7e83b\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "api-version": "experimental",
  "Content-Type": "application/json"
]
let parameters = ["data": [
    "file_ids": ["2afb4e64-0d7f-4b2e-bb23-4a5f30be3214", "2927e0d7-e0bc-4820-be13-258f89636a55"],
    "values": [
      [
        "field_definition_id": "e29309bb-2686-4e75-9609-e3db3424546f",
        "value": "active"
      ],
      [
        "field_definition_id": "c0d8f5e4-b9ec-4236-ba8e-c0efeb560f30",
        "value": 5
      ],
      [
        "field_definition_id": "d632ddd7-8295-4fd4-b952-1610632972d5",
        "value": "16116057-3da7-4dc9-9230-f6b1efb7e83b"
      ]
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v4/accounts/127b1197-838a-446a-8acc-7ad05de89be9/projects/d7b5cd60-9045-4149-9345-658e9bf39e6a/metadata/values")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```