<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ivs.help/wiki/index.php?action=history&amp;feed=atom&amp;title=API_Edit_Comment</id>
		<title>API Edit Comment - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ivs.help/wiki/index.php?action=history&amp;feed=atom&amp;title=API_Edit_Comment"/>
		<link rel="alternate" type="text/html" href="https://ivs.help/wiki/index.php?title=API_Edit_Comment&amp;action=history"/>
		<updated>2026-06-17T19:00:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://ivs.help/wiki/index.php?title=API_Edit_Comment&amp;diff=17600&amp;oldid=prev</id>
		<title>IVSWikiBlue: Created page with &quot;This API call will update an existing comment by its ID.  ===Resource URL=== &lt;pre&gt;http://valt.example.com/api/v3/comment/update/{id}&lt;/pre&gt; ''Replace {id} with the actual ID nu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ivs.help/wiki/index.php?title=API_Edit_Comment&amp;diff=17600&amp;oldid=prev"/>
				<updated>2026-06-11T20:34:30Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;This API call will update an existing comment by its ID.  ===Resource URL=== &amp;lt;pre&amp;gt;http://valt.example.com/api/v3/comment/update/{id}&amp;lt;/pre&amp;gt; &amp;#039;&amp;#039;Replace {id} with the actual ID nu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This API call will update an existing comment by its ID.&lt;br /&gt;
&lt;br /&gt;
===Resource URL===&lt;br /&gt;
&amp;lt;pre&amp;gt;http://valt.example.com/api/v3/comment/update/{id}&amp;lt;/pre&amp;gt;&lt;br /&gt;
''Replace {id} with the actual ID number of the comment.''&lt;br /&gt;
&lt;br /&gt;
===Resource Information===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|'''Method'''&lt;br /&gt;
|POST&lt;br /&gt;
|-&lt;br /&gt;
|'''Headers'''&lt;br /&gt;
|Content-Type: application/json&amp;lt;br&amp;gt;''or'' Content-Type: multipart/form-data ''(when attaching files)''&lt;br /&gt;
|-&lt;br /&gt;
|'''Response Type'''&lt;br /&gt;
|JSON&lt;br /&gt;
|-&lt;br /&gt;
|'''Authentication Required'''&lt;br /&gt;
|Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
====Path Parameters====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Parameter&lt;br /&gt;
!Description&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|'''id'''&lt;br /&gt;
|The ID of the comment to update.&lt;br /&gt;
|42&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Request Body====&lt;br /&gt;
The JSON body must be properly formatted. All fields and values should be enclosed in double quotes and separated by a colon. The &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;recordId&amp;lt;/code&amp;gt; fields are always required.&lt;br /&gt;
&lt;br /&gt;
=====Required Fields=====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot;|Field Name&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''type'''&lt;br /&gt;
|string&lt;br /&gt;
|Comment type. Must be one of: &amp;lt;code&amp;gt;simple&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;duration&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;transcription&amp;lt;/code&amp;gt;.&lt;br /&gt;
|&amp;quot;simple&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''recordId'''&lt;br /&gt;
|string (UUID)&lt;br /&gt;
|Unique identifier of the recording associated with the comment.&lt;br /&gt;
|&amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''recordTime'''&lt;br /&gt;
|int&lt;br /&gt;
|Time index in seconds from the beginning of the recording. Required when type is &amp;lt;code&amp;gt;simple&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;transcription&amp;lt;/code&amp;gt;.&lt;br /&gt;
|15&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''startTime'''&lt;br /&gt;
|int&lt;br /&gt;
|Start time in seconds from the beginning of the recording. Required when type is &amp;lt;code&amp;gt;duration&amp;lt;/code&amp;gt;.&lt;br /&gt;
|12&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''endTime'''&lt;br /&gt;
|int&lt;br /&gt;
|End time in seconds from the beginning of the recording. Required when type is &amp;lt;code&amp;gt;duration&amp;lt;/code&amp;gt;.&lt;br /&gt;
|42&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=====Optional Fields=====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot;|Field Name&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''message'''&lt;br /&gt;
|string&lt;br /&gt;
|The updated text content of the comment.&lt;br /&gt;
|&amp;quot;Updated comment text&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''audioId'''&lt;br /&gt;
|string (UUID)&lt;br /&gt;
|Unique identifier for an associated audio recording.&lt;br /&gt;
|&amp;quot;8864d73b-a7f3-4412-bda3-d7ef1c1cd2da&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''template'''&lt;br /&gt;
|object&lt;br /&gt;
|Template attachment for structured comment data. Contains &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; (int), and optionally &amp;lt;code&amp;gt;data&amp;lt;/code&amp;gt; (object) and &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; (string).&lt;br /&gt;
|{&amp;quot;id&amp;quot;: 1, &amp;quot;data&amp;quot;: {&amp;quot;37&amp;quot;: &amp;quot;some value&amp;quot;}, &amp;quot;name&amp;quot;: &amp;quot;Entity name&amp;quot;}&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''files'''&lt;br /&gt;
|array&lt;br /&gt;
|New binary file attachments to add. Requires &amp;lt;code&amp;gt;multipart/form-data&amp;lt;/code&amp;gt; content type.&lt;br /&gt;
|[binFile1, binFile2]&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''fileIds'''&lt;br /&gt;
|array of int&lt;br /&gt;
|IDs of existing file attachments to retain on the comment. Files not listed here will be removed.&lt;br /&gt;
|[20, 21]&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''color'''&lt;br /&gt;
|string&lt;br /&gt;
|Name of a color to associate with the comment.&lt;br /&gt;
|&amp;quot;red&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''taggedUsers'''&lt;br /&gt;
|array&lt;br /&gt;
|Array of user IDs to tag in the comment.&lt;br /&gt;
|[1, 2]&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|'''taggedUserGroups'''&lt;br /&gt;
|array&lt;br /&gt;
|Array of user group IDs to tag in the comment.&lt;br /&gt;
|[3, 4]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Response===&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Code&lt;br /&gt;
!Reason&lt;br /&gt;
|-&lt;br /&gt;
|200&lt;br /&gt;
|Comment Updated Successfully&lt;br /&gt;
|-&lt;br /&gt;
|400&lt;br /&gt;
|Invalid Request (See Response for Specific Error)&lt;br /&gt;
|-&lt;br /&gt;
|401&lt;br /&gt;
|Unauthorized&lt;br /&gt;
|-&lt;br /&gt;
|500&lt;br /&gt;
|Internal Server Error&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A successful response returns the full updated Comment object:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Comment Object Fields&lt;br /&gt;
!Field&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|'''id'''&lt;br /&gt;
|int&lt;br /&gt;
|Unique identifier of the comment.&lt;br /&gt;
|-&lt;br /&gt;
|'''parentId'''&lt;br /&gt;
|int or null&lt;br /&gt;
|The ID of the parent comment, if applicable. Null if it has no parent.&lt;br /&gt;
|-&lt;br /&gt;
|'''message'''&lt;br /&gt;
|string or null&lt;br /&gt;
|The text content of the comment.&lt;br /&gt;
|-&lt;br /&gt;
|'''recordId'''&lt;br /&gt;
|string&lt;br /&gt;
|Unique identifier for the associated record.&lt;br /&gt;
|-&lt;br /&gt;
|'''recordTime'''&lt;br /&gt;
|string&lt;br /&gt;
|Seconds from the beginning of the associated record.&lt;br /&gt;
|-&lt;br /&gt;
|'''createdAt'''&lt;br /&gt;
|int&lt;br /&gt;
|Unix timestamp when the comment was created.&lt;br /&gt;
|-&lt;br /&gt;
|'''updatedAt'''&lt;br /&gt;
|int&lt;br /&gt;
|Unix timestamp when the comment was last updated.&lt;br /&gt;
|-&lt;br /&gt;
|'''author'''&lt;br /&gt;
|User object&lt;br /&gt;
|The author of the comment. Contains &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;displayName&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|'''updatedBy'''&lt;br /&gt;
|User object or null&lt;br /&gt;
|The user who last updated the comment. Null if never updated.&lt;br /&gt;
|-&lt;br /&gt;
|'''audioId'''&lt;br /&gt;
|string or null&lt;br /&gt;
|Unique identifier for the associated audio, if applicable.&lt;br /&gt;
|-&lt;br /&gt;
|'''template'''&lt;br /&gt;
|Template object or null&lt;br /&gt;
|Template attachment, if applicable.&lt;br /&gt;
|-&lt;br /&gt;
|'''files'''&lt;br /&gt;
|array&lt;br /&gt;
|List of file attachments. Empty array if no files are attached. Each file contains &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;size&amp;lt;/code&amp;gt; (bytes).&lt;br /&gt;
|-&lt;br /&gt;
|'''color'''&lt;br /&gt;
|string&lt;br /&gt;
|Color name associated with the comment.&lt;br /&gt;
|-&lt;br /&gt;
|'''replies'''&lt;br /&gt;
|array&lt;br /&gt;
|Array of reply comments.&lt;br /&gt;
|-&lt;br /&gt;
|'''taggedUsers'''&lt;br /&gt;
|array&lt;br /&gt;
|Array of users tagged in the comment.&lt;br /&gt;
|-&lt;br /&gt;
|'''taggedUserGroups'''&lt;br /&gt;
|array&lt;br /&gt;
|Array of user groups tagged in the comment.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Simple Text Comment===&lt;br /&gt;
====Request====&lt;br /&gt;
The sample JSON body below is formatted with line breaks and indentation to make it easier to read. This is '''not''' required.&lt;br /&gt;
&amp;lt;pre&amp;gt;https://ivstest1.ad.ipivs.com/api/v3/comment/update/42?access_token=e82632d19c523678fea3d1016c6df9e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;type&amp;quot;: &amp;quot;simple&amp;quot;,&lt;br /&gt;
  &amp;quot;recordId&amp;quot;: &amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;,&lt;br /&gt;
  &amp;quot;recordTime&amp;quot;: 15,&lt;br /&gt;
  &amp;quot;message&amp;quot;: &amp;quot;Updated comment text&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Duration Marker Comment===&lt;br /&gt;
====Request====&lt;br /&gt;
&amp;lt;pre&amp;gt;https://ivstest1.ad.ipivs.com/api/v3/comment/update/42?access_token=e82632d19c523678fea3d1016c6df9e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;type&amp;quot;: &amp;quot;duration&amp;quot;,&lt;br /&gt;
  &amp;quot;recordId&amp;quot;: &amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;,&lt;br /&gt;
  &amp;quot;startTime&amp;quot;: 12,&lt;br /&gt;
  &amp;quot;endTime&amp;quot;: 42,&lt;br /&gt;
  &amp;quot;message&amp;quot;: &amp;quot;Updated marker spanning a range&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Template Comment===&lt;br /&gt;
====Request====&lt;br /&gt;
&amp;lt;pre&amp;gt;https://ivstest1.ad.ipivs.com/api/v3/comment/update/42?access_token=e82632d19c523678fea3d1016c6df9e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;type&amp;quot;: &amp;quot;simple&amp;quot;,&lt;br /&gt;
  &amp;quot;recordId&amp;quot;: &amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;,&lt;br /&gt;
  &amp;quot;recordTime&amp;quot;: 10,&lt;br /&gt;
  &amp;quot;template&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 1,&lt;br /&gt;
    &amp;quot;data&amp;quot;: {&lt;br /&gt;
      &amp;quot;37&amp;quot;: &amp;quot;some value&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;Entity name&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Retaining Existing File Attachments===&lt;br /&gt;
====Request====&lt;br /&gt;
Use &amp;lt;code&amp;gt;fileIds&amp;lt;/code&amp;gt; to keep existing files on the comment. Files whose IDs are not included will be removed.&lt;br /&gt;
&amp;lt;pre&amp;gt;https://ivstest1.ad.ipivs.com/api/v3/comment/update/42?access_token=e82632d19c523678fea3d1016c6df9e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;type&amp;quot;: &amp;quot;simple&amp;quot;,&lt;br /&gt;
  &amp;quot;recordId&amp;quot;: &amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;,&lt;br /&gt;
  &amp;quot;recordTime&amp;quot;: 15,&lt;br /&gt;
  &amp;quot;fileIds&amp;quot;: [20, 21],&lt;br /&gt;
  &amp;quot;message&amp;quot;: &amp;quot;Updated message with existing files retained&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Successful Response===&lt;br /&gt;
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;id&amp;quot;: 42,&lt;br /&gt;
  &amp;quot;parentId&amp;quot;: null,&lt;br /&gt;
  &amp;quot;message&amp;quot;: &amp;quot;Updated comment text&amp;quot;,&lt;br /&gt;
  &amp;quot;recordId&amp;quot;: &amp;quot;7b931a86-2142-4121-a6f8-2e3197d4c5bf&amp;quot;,&lt;br /&gt;
  &amp;quot;recordTime&amp;quot;: 15,&lt;br /&gt;
  &amp;quot;audioId&amp;quot;: null,&lt;br /&gt;
  &amp;quot;template&amp;quot;: null,&lt;br /&gt;
  &amp;quot;author&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 2,&lt;br /&gt;
    &amp;quot;displayName&amp;quot;: &amp;quot;John Smith&amp;quot;,&lt;br /&gt;
    &amp;quot;username&amp;quot;: &amp;quot;jsmith&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;files&amp;quot;: [],&lt;br /&gt;
  &amp;quot;updatedBy&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 2,&lt;br /&gt;
    &amp;quot;displayName&amp;quot;: &amp;quot;John Smith&amp;quot;,&lt;br /&gt;
    &amp;quot;username&amp;quot;: &amp;quot;jsmith&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;color&amp;quot;: &amp;quot;red&amp;quot;,&lt;br /&gt;
  &amp;quot;replies&amp;quot;: [],&lt;br /&gt;
  &amp;quot;taggedUsers&amp;quot;: [],&lt;br /&gt;
  &amp;quot;taggedUserGroups&amp;quot;: [],&lt;br /&gt;
  &amp;quot;createdAt&amp;quot;: 1737109634,&lt;br /&gt;
  &amp;quot;updatedAt&amp;quot;: 1737111434&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Failure Response===&lt;br /&gt;
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;error&amp;quot;: {&lt;br /&gt;
    &amp;quot;code&amp;quot;: 500,&lt;br /&gt;
    &amp;quot;message&amp;quot;: &amp;quot;Internal Server Error&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>IVSWikiBlue</name></author>	</entry>

	</feed>