> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developer.staging.frame.io/platform/v4/api-reference/metadata/bulk-update/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. Rate Limits: 10 calls per 1.00 minute(s) per account\_user Reference: https://developer.staging.frame.io/platform/api-reference/metadata/bulk-update ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `account_id` (string, required) - `project_id` (string, required) ### 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: \[\]. Users and MultiUser values should be passed as lists formatted as follows: \[%\{id: \, type: "user"}, %\{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": [ "72e2db1c-313d-4b58-9c86-d238ab0851ee", "756cbbd8-3fb0-4108-9736-f15e0fae8cf7" ], "values": [ { "field_definition_id": "4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed", "value": "active" }, { "field_definition_id": "4f77bbdf-3c85-4bd2-8df5-0442bfec67f6", "value": 5 }, { "field_definition_id": "cf7bda06-fd87-40fa-a9b1-ca49096a9cad", "value": "c3ad9ac2-d6a1-4786-af4f-394aa12449a2" } ] } } ``` **Response** ```json {} ``` **SDK Code** ```python import requests url = "https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values" payload = { "data": { "file_ids": ["72e2db1c-313d-4b58-9c86-d238ab0851ee", "756cbbd8-3fb0-4108-9736-f15e0fae8cf7"], "values": [ { "field_definition_id": "4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed", "value": "active" }, { "field_definition_id": "4f77bbdf-3c85-4bd2-8df5-0442bfec67f6", "value": 5 }, { "field_definition_id": "cf7bda06-fd87-40fa-a9b1-ca49096a9cad", "value": "c3ad9ac2-d6a1-4786-af4f-394aa12449a2" } ] } } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.patch(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values'; const options = { method: 'PATCH', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"data":{"file_ids":["72e2db1c-313d-4b58-9c86-d238ab0851ee","756cbbd8-3fb0-4108-9736-f15e0fae8cf7"],"values":[{"field_definition_id":"4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed","value":"active"},{"field_definition_id":"4f77bbdf-3c85-4bd2-8df5-0442bfec67f6","value":5},{"field_definition_id":"cf7bda06-fd87-40fa-a9b1-ca49096a9cad","value":"c3ad9ac2-d6a1-4786-af4f-394aa12449a2"}]}}' }; 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/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values" payload := strings.NewReader("{\n \"data\": {\n \"file_ids\": [\n \"72e2db1c-313d-4b58-9c86-d238ab0851ee\",\n \"756cbbd8-3fb0-4108-9736-f15e0fae8cf7\"\n ],\n \"values\": [\n {\n \"field_definition_id\": \"4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed\",\n \"value\": \"active\"\n },\n {\n \"field_definition_id\": \"4f77bbdf-3c85-4bd2-8df5-0442bfec67f6\",\n \"value\": 5\n },\n {\n \"field_definition_id\": \"cf7bda06-fd87-40fa-a9b1-ca49096a9cad\",\n \"value\": \"c3ad9ac2-d6a1-4786-af4f-394aa12449a2\"\n }\n ]\n }\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("Authorization", "Bearer ") 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/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Patch.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"data\": {\n \"file_ids\": [\n \"72e2db1c-313d-4b58-9c86-d238ab0851ee\",\n \"756cbbd8-3fb0-4108-9736-f15e0fae8cf7\"\n ],\n \"values\": [\n {\n \"field_definition_id\": \"4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed\",\n \"value\": \"active\"\n },\n {\n \"field_definition_id\": \"4f77bbdf-3c85-4bd2-8df5-0442bfec67f6\",\n \"value\": 5\n },\n {\n \"field_definition_id\": \"cf7bda06-fd87-40fa-a9b1-ca49096a9cad\",\n \"value\": \"c3ad9ac2-d6a1-4786-af4f-394aa12449a2\"\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 response = Unirest.patch("https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"data\": {\n \"file_ids\": [\n \"72e2db1c-313d-4b58-9c86-d238ab0851ee\",\n \"756cbbd8-3fb0-4108-9736-f15e0fae8cf7\"\n ],\n \"values\": [\n {\n \"field_definition_id\": \"4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed\",\n \"value\": \"active\"\n },\n {\n \"field_definition_id\": \"4f77bbdf-3c85-4bd2-8df5-0442bfec67f6\",\n \"value\": 5\n },\n {\n \"field_definition_id\": \"cf7bda06-fd87-40fa-a9b1-ca49096a9cad\",\n \"value\": \"c3ad9ac2-d6a1-4786-af4f-394aa12449a2\"\n }\n ]\n }\n}") .asString(); ``` ```php request('PATCH', 'https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values', [ 'body' => '{ "data": { "file_ids": [ "72e2db1c-313d-4b58-9c86-d238ab0851ee", "756cbbd8-3fb0-4108-9736-f15e0fae8cf7" ], "values": [ { "field_definition_id": "4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed", "value": "active" }, { "field_definition_id": "4f77bbdf-3c85-4bd2-8df5-0442bfec67f6", "value": 5 }, { "field_definition_id": "cf7bda06-fd87-40fa-a9b1-ca49096a9cad", "value": "c3ad9ac2-d6a1-4786-af4f-394aa12449a2" } ] } }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/metadata/values"); var request = new RestRequest(Method.PATCH); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"data\": {\n \"file_ids\": [\n \"72e2db1c-313d-4b58-9c86-d238ab0851ee\",\n \"756cbbd8-3fb0-4108-9736-f15e0fae8cf7\"\n ],\n \"values\": [\n {\n \"field_definition_id\": \"4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed\",\n \"value\": \"active\"\n },\n {\n \"field_definition_id\": \"4f77bbdf-3c85-4bd2-8df5-0442bfec67f6\",\n \"value\": 5\n },\n {\n \"field_definition_id\": \"cf7bda06-fd87-40fa-a9b1-ca49096a9cad\",\n \"value\": \"c3ad9ac2-d6a1-4786-af4f-394aa12449a2\"\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["data": [ "file_ids": ["72e2db1c-313d-4b58-9c86-d238ab0851ee", "756cbbd8-3fb0-4108-9736-f15e0fae8cf7"], "values": [ [ "field_definition_id": "4d4a2b85-9060-4de2-bbeb-f9e8e85cb4ed", "value": "active" ], [ "field_definition_id": "4f77bbdf-3c85-4bd2-8df5-0442bfec67f6", "value": 5 ], [ "field_definition_id": "cf7bda06-fd87-40fa-a9b1-ca49096a9cad", "value": "c3ad9ac2-d6a1-4786-af4f-394aa12449a2" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v4/accounts/b5a840e3-091e-4a43-b977-970aa56be5bf/projects/36eb1e9f-48f6-48cf-9022-a743200b96d2/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() ```