Edit a comment
curl --request PATCH \
--url https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}"
payload = {
"content": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', changedByUserId: '<string>', networkId: '<string>'})
};
fetch('https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'content' => '<string>',
'changedByUserId' => '<string>',
'networkId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"networkId": "<string>",
"incidentId": "<string>",
"authorType": "USER",
"visibility": "INTERNAL",
"content": "<string>",
"attachments": [
{
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"uploadedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"authorUserId": "<string>",
"mergedFromIncidentId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"editedAt": "2023-11-07T05:31:56Z",
"editedByUserId": "<string>"
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}"<string>"{
"type": "NOT_FOUND",
"code": "<string>",
"message": "<string>"
}{
"type": "INTERNAL_ERROR",
"message": "<string>"
}Incidents
Edit a comment
Edit a comment’s body. Only Support Operator (USER) comments can be edited; system comments are immutable.
PATCH
/
incident-management
/
v1
/
incidents
/
{id}
/
comments
/
{commentId}
Edit a comment
curl --request PATCH \
--url https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}"
payload = {
"content": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', changedByUserId: '<string>', networkId: '<string>'})
};
fetch('https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'content' => '<string>',
'changedByUserId' => '<string>',
'networkId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lynkwell.com/incident-management/v1/incidents/{id}/comments/{commentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"networkId": "<string>",
"incidentId": "<string>",
"authorType": "USER",
"visibility": "INTERNAL",
"content": "<string>",
"attachments": [
{
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"uploadedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"authorUserId": "<string>",
"mergedFromIncidentId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"editedAt": "2023-11-07T05:31:56Z",
"editedByUserId": "<string>"
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}"<string>"{
"type": "NOT_FOUND",
"code": "<string>",
"message": "<string>"
}{
"type": "INTERNAL_ERROR",
"message": "<string>"
}Authorizations
OAuth2 Client Credentials Flow
Body
application/json
Edit a comment's body. Only Support Operator (USER) comments can be edited.
Maximum string length:
10000NetworkUser id of the acting Support Operator. Required on every write; attributes the change.
Network id. Required for machine (M2M) callers whose token carries no network claim; ignored when the token has one.
Response
The updated comment.
A comment on an incident. Visibility governs who is notified, not who can read it — every comment on this API is returned to callers with read access.
Show child attributes
Show child attributes