​

Update comment

PATCH
https://example.kaiten.ru/api/latest/cards/{card_id}/comments/{comment_id}
Path parameters
NameTypeReference
card_idrequiredintegerCard ID
comment_idrequiredintegerComment ID
Headers
NameValueDescription
Content-Typeapplication/json, multipart/form-datamultipart/form-data is only needed for the deprecated files[] upload, otherwise any type
Attributes
NameTypeConstraintsDescription
text
string
minLength: 0
maxLength: 4096

Comment

files[]Deprecated
array of binary files

Deprecated: files uploaded here have no restricted access. Upload them through the restricted access comment files route instead.

Responses

200
DescriptionResponse typeExample
SuccessObject
Open
Response Attributes
NameTypeDescription
updated

string

Last update timestamp
created

string

Create date
id

integer

Comment id
uid

string

Comment UID (UUID)
text

string

Comment text
is_transcription

boolean

True for a voice or video transcription comment. Read-only; PATCH cannot change it.
transcription_status

enum | null

Transcription status of a voice or video comment (read-only): `pending` — in progress, `completed` — the text is ready (it can be empty if the recording has no speech), `failed` — the text could not be obtained. A user can restart recognition in the Kaiten interface; a `comment:update` webhook is sent when the status changes. `null` — for other comments, and for voice or video comments whose status is unknown (created before this field appeared or transferred from another installation). New values may be added.
type

enum

1-markdown, 2-html
edited

boolean

Is comment edited
card_id

integer

Card id
author_id

integer

Author id
email_addresses_to

string

Mail addresses to send comment
internal

boolean

Internal flag
deleted

boolean

Deleted flag
sd_external_recipients_cc

string | null

Service desk external recipients
sd_description

boolean

Flag indicating that the comment is used as a request description when the card is a service desk request
notification_sent

string | null

Notification_sent date
attachments

array of objects

Schema
Comment attachments
400
DescriptionResponse typeExample
Validation ErrorObject
Open
Response Attributes
NameTypeDescription
message

string

Error message
401
DescriptionResponse typeExample
Invalid tokenString
Open
403
DescriptionResponse typeExample
Forbidden. Transcription comments cannot be edited through PATCH. Also returned when the company forbids uploading files without restricted access through the public API — the body carries code: "PUBLIC_API_LEGACY_FILE_UPLOAD_DISABLED". See the migration guide at /restricted-access-files-migration.Response body does not exist
404
DescriptionResponse typeExample
Not foundResponse body does not exist
Examples

(Deprecated) How to upload files to comment — use POST /cards/{card_uid}/comments/{comment_uid}/files instead:

  1  curl --request PATCH \
  2       --url 'https://example.kaiten.ru/api/latest/cards/{card_id}/comments/{comment_id}' \
  3       --header 'Accept: application/json' \
  4       --header 'Content-Type: multipart/form-data' \
  5       --header 'Authorization: Bearer {yours bearer token}' \
  6       --form 'files[]=@/path/to/file1'\ 
  7       --form 'files[]=@/path/to/file2'
  8       

logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.ru

Path Parameters

Upload files

  1  curl --request PATCH \
  2       --url 'https://example.kaiten.ru/api/latest/cards/{card_id}/comments/{comment_id}' \
  3       --header 'Accept: application/json' \
  4       --header 'Content-Type: application/json'
  5      

Response

ClickTry It!to start a request and see the response here!