curl --request PUT \
--url https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"faultCatalogEntryId": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry"
payload = {
"faultCatalogEntryId": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
faultCatalogEntryId: '<string>',
changedByUserId: '<string>',
networkId: '<string>'
})
};
fetch('https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry', 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}/faults/{faultId}/catalog-entry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'faultCatalogEntryId' => '<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}/faults/{faultId}/catalog-entry"
payload := strings.NewReader("{\n \"faultCatalogEntryId\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"faultCatalogEntryId\": \"<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}/faults/{faultId}/catalog-entry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"faultCatalogEntryId\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"networkId": "<string>",
"detectedAt": "2023-11-07T05:31:56Z",
"status": "NEW",
"summary": "<string>",
"description": "<string>",
"alertType": "<string>",
"affectedStationCount": 123,
"faults": [
{
"id": "<string>",
"errorCode": "<string>",
"vendorErrorCode": "<string>",
"vendorId": "<string>",
"faultCatalogEntryId": "<string>",
"mergedFromIncidentId": "<string>"
}
],
"faultInstances": [
{
"incidentFaultId": "<string>",
"stationId": "<string>",
"connectorId": 123,
"firstReportedAt": "2023-11-07T05:31:56Z",
"lastReportedAt": "2023-11-07T05:31:56Z",
"occurrenceCount": 123,
"mergedFromIncidentId": "<string>"
}
],
"slaState": "ON_TRACK",
"slaBreached": true,
"linkedIncidentIds": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoResolved": true,
"locationId": "<string>",
"rootCause": "<string>",
"resolutionNotes": "<string>",
"assigneeUserId": "<string>",
"slaResolutionDeadline": "2023-11-07T05:31:56Z",
"mergedIntoIncidentId": "<string>",
"lastActivityAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}<string>{
"type": "NOT_FOUND",
"code": "<string>",
"message": "<string>"
}{
"type": "CONFLICT",
"code": "<string>",
"message": "<string>"
}{
"type": "INTERNAL_ERROR",
"message": "<string>"
}Map a diagnosis to a fault-catalog entry
Points one of an incident’s diagnoses at an existing fault-catalog entry. Automatic classification keys on , which cannot reach a fault whose charger never reported a usable vendor — this is the operator’s way in. The mapping is sticky: catalog growth never overwrites it.
curl --request PUT \
--url https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"faultCatalogEntryId": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
'import requests
url = "https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry"
payload = {
"faultCatalogEntryId": "<string>",
"changedByUserId": "<string>",
"networkId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
faultCatalogEntryId: '<string>',
changedByUserId: '<string>',
networkId: '<string>'
})
};
fetch('https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry', 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}/faults/{faultId}/catalog-entry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'faultCatalogEntryId' => '<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}/faults/{faultId}/catalog-entry"
payload := strings.NewReader("{\n \"faultCatalogEntryId\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lynkwell.com/incident-management/v1/incidents/{id}/faults/{faultId}/catalog-entry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"faultCatalogEntryId\": \"<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}/faults/{faultId}/catalog-entry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"faultCatalogEntryId\": \"<string>\",\n \"changedByUserId\": \"<string>\",\n \"networkId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"networkId": "<string>",
"detectedAt": "2023-11-07T05:31:56Z",
"status": "NEW",
"summary": "<string>",
"description": "<string>",
"alertType": "<string>",
"affectedStationCount": 123,
"faults": [
{
"id": "<string>",
"errorCode": "<string>",
"vendorErrorCode": "<string>",
"vendorId": "<string>",
"faultCatalogEntryId": "<string>",
"mergedFromIncidentId": "<string>"
}
],
"faultInstances": [
{
"incidentFaultId": "<string>",
"stationId": "<string>",
"connectorId": 123,
"firstReportedAt": "2023-11-07T05:31:56Z",
"lastReportedAt": "2023-11-07T05:31:56Z",
"occurrenceCount": 123,
"mergedFromIncidentId": "<string>"
}
],
"slaState": "ON_TRACK",
"slaBreached": true,
"linkedIncidentIds": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoResolved": true,
"locationId": "<string>",
"rootCause": "<string>",
"resolutionNotes": "<string>",
"assigneeUserId": "<string>",
"slaResolutionDeadline": "2023-11-07T05:31:56Z",
"mergedIntoIncidentId": "<string>",
"lastActivityAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}
}{
"type": "BAD_REQUEST",
"code": "<string>",
"message": "<string>"
}{
"message": "<string>"
}<string>{
"type": "NOT_FOUND",
"code": "<string>",
"message": "<string>"
}{
"type": "CONFLICT",
"code": "<string>",
"message": "<string>"
}{
"type": "INTERNAL_ERROR",
"message": "<string>"
}Authorizations
OAuth2 Client Credentials Flow
Body
Point one of an incident’s diagnoses at an existing fault-catalog entry. Automatic classification keys on {oem, vendorErrorCode}, which cannot reach a fault whose charger never reported a usable vendor; this is the operator’s way in. The mapping is sticky — later catalog growth never overwrites it.
Response
The updated incident.
An incident: a period of degraded or lost service on one or more stations. The roster of affected stations lives on the affected-stations sub-resource; the incident carries only the cached affectedStationCount.
Show child attributes
Show child attributes