> 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/comments/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 comment PATCH https://api.frame.io/v4/accounts/{account_id}/comments/{comment_id} Content-Type: application/json Update comment on given asset. Rate Limits: 10 calls per 1.00 minute(s) per account\_user Reference: https://developer.staging.frame.io/platform/api-reference/comments/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) - `comment_id` (string, required) ### Body (application/json) This endpoint expects an UpdateCommentParams. - `data` (UpdateCommentParamsData, required) ## Response ### 200 OK - `data` (Comment, required) ## 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 ### UpdateCommentParamsData - `annotation` (string, optional, nullable) — JSON geometry for on-screen drawings. Allowed for document, image, video, or stream file types. JSON must be stringified. - `completed` (boolean, optional, nullable) — Comment completion status - `page` (integer, optional, nullable) — Document page. Only allowed when file type is a pdf document - `text` (string, optional) — Comment text - `timestamp` (double, optional, nullable) — Comment frame number in media. Only allowed when file type is 'audio', 'stream', or 'video'. ### Comment - `annotation` (string, required, nullable) - `completed_at` (string, required, nullable) — Completion timestamp - `completer_id` (string, required, nullable) — ID of user who marked the comment as completed - `created_at` (string, required) — Creation timestamp - `file_id` (string, required) — File ID - `id` (string, required) — Comment ID - `page` (integer, required, nullable) — Document page - `text` (string, required) — Comment text - `text_edited_at` (string, required, nullable) — Text edited timestamp - `timestamp` (double, required, nullable) — Comment frame number in media. - `updated_at` (string, required) — Update timestamp ### 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) ### 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": { "annotation": "[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]", "completed": false, "page": 4, "text": "This is great!", "timestamp": 1.1 } } ``` **Response** ```json { "data": { "annotation": "annotation", "completed_at": "2024-01-15T09:30:00Z", "completer_id": "string", "created_at": "2024-02-02T21:19:24.828948Z", "file_id": "4ae08df1-b419-4897-aba5-560198a18237", "id": "52a1032a-63a3-44a3-9ce5-f904fc158e23", "page": 1, "text": "This is great!", "text_edited_at": "2024-02-02T21:19:24.828948Z", "timestamp": 123, "updated_at": "2024-02-02T21:19:24.828948Z" } } ``` **SDK Code** ```python import requests url = "https://api.frame.io/v4/accounts/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627" payload = { "data": { "annotation": "[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]", "completed": False, "page": 4, "text": "This is great!", "timestamp": 1.1 } } 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/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627'; const options = { method: 'PATCH', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"data":{"annotation":"[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]","completed":false,"page":4,"text":"This is great!","timestamp":1.1}}' }; 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/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627" payload := strings.NewReader("{\n \"data\": {\n \"annotation\": \"[{\\\"tool\\\":\\\"rect\\\",\\\"color\\\":\\\"#F22237\\\",\\\"size\\\":8,\\\"x\\\":0.277726001863933,\\\"y\\\":0.12909555568499534,\\\"w\\\":0.3153168321877913,\\\"h\\\":0.5308131407269339,\\\"ix\\\":0.277726001863933,\\\"iy\\\":0.12909555568499534,\\\"radius\\\":8}]\",\n \"completed\": false,\n \"page\": 4,\n \"text\": \"This is great!\",\n \"timestamp\": 1.1\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/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627") 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 \"annotation\": \"[{\\\"tool\\\":\\\"rect\\\",\\\"color\\\":\\\"#F22237\\\",\\\"size\\\":8,\\\"x\\\":0.277726001863933,\\\"y\\\":0.12909555568499534,\\\"w\\\":0.3153168321877913,\\\"h\\\":0.5308131407269339,\\\"ix\\\":0.277726001863933,\\\"iy\\\":0.12909555568499534,\\\"radius\\\":8}]\",\n \"completed\": false,\n \"page\": 4,\n \"text\": \"This is great!\",\n \"timestamp\": 1.1\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/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"data\": {\n \"annotation\": \"[{\\\"tool\\\":\\\"rect\\\",\\\"color\\\":\\\"#F22237\\\",\\\"size\\\":8,\\\"x\\\":0.277726001863933,\\\"y\\\":0.12909555568499534,\\\"w\\\":0.3153168321877913,\\\"h\\\":0.5308131407269339,\\\"ix\\\":0.277726001863933,\\\"iy\\\":0.12909555568499534,\\\"radius\\\":8}]\",\n \"completed\": false,\n \"page\": 4,\n \"text\": \"This is great!\",\n \"timestamp\": 1.1\n }\n}") .asString(); ``` ```php request('PATCH', 'https://api.frame.io/v4/accounts/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627', [ 'body' => '{ "data": { "annotation": "[{\\"tool\\":\\"rect\\",\\"color\\":\\"#F22237\\",\\"size\\":8,\\"x\\":0.277726001863933,\\"y\\":0.12909555568499534,\\"w\\":0.3153168321877913,\\"h\\":0.5308131407269339,\\"ix\\":0.277726001863933,\\"iy\\":0.12909555568499534,\\"radius\\":8}]", "completed": false, "page": 4, "text": "This is great!", "timestamp": 1.1 } }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.frame.io/v4/accounts/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627"); var request = new RestRequest(Method.PATCH); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"data\": {\n \"annotation\": \"[{\\\"tool\\\":\\\"rect\\\",\\\"color\\\":\\\"#F22237\\\",\\\"size\\\":8,\\\"x\\\":0.277726001863933,\\\"y\\\":0.12909555568499534,\\\"w\\\":0.3153168321877913,\\\"h\\\":0.5308131407269339,\\\"ix\\\":0.277726001863933,\\\"iy\\\":0.12909555568499534,\\\"radius\\\":8}]\",\n \"completed\": false,\n \"page\": 4,\n \"text\": \"This is great!\",\n \"timestamp\": 1.1\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["data": [ "annotation": "[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]", "completed": false, "page": 4, "text": "This is great!", "timestamp": 1.1 ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v4/accounts/93d8cede-31ee-403b-9857-07e93bf2f8fb/comments/ef2dbf8d-a5aa-49c9-8992-5f0a0be10627")! 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() ```