api-referencePATCH
PATCH
https://analytics.flowsery.com/analytics/api/v1/issues/{issueId}Zmienia status problemu wykrytego przez AI. Zwraca zaktualizowane szczegóły problemu.
Bearer Token (token obszaru roboczego lub klucz API witryny)
Tokeny obszaru roboczego wymagają wskazania witryny
Tokeny API obszaru roboczego mają dostęp do wszystkich witryn w obszarze. Należy przekazaćwebsiteId lub domain, aby Flowsery wiedziało, której witryny dotyczy zapytanie lub zmiana. Klucze API witryn są już przypisane do jednej witryny, więc można to pominąć.Wskazanie witryny
| Parametr | Typ | Opis |
|---|---|---|
websiteId | string | ID witryny używane z tokenem API obszaru roboczego. Pole należy umieścić w treści JSON, chyba że podano domain. Należy pominąć przy uwierzytelnianiu kluczem API witryny. |
domain | string | Domena witryny używana z tokenem API obszaru roboczego, gdy nie podano websiteId. Pole należy umieścić w treści JSON. Należy pominąć przy uwierzytelnianiu kluczem API witryny. |
Treść żądania
| Parametr | Typ | Opis |
|---|---|---|
statusWYMAGANE | string | Nowy status: open, in_progress, resolved lub suspended. |
Zawieszanie problemu
Zawieszone problemy znikają z domyślnej odpowiedzi List issues. Ustawienie innego statusu przywraca problem.Odpowiedź po sukcesie zawiera zaktualizowane szczegóły problemu w tym samym formacie co Get issue details.
Odpowiedzi z błędami
<strong>404 Not Found</strong> -- Problem nie istnieje w wybranej witrynie.
<strong>403 Forbidden</strong> -- W okresie próbnym problem jest poza 10 pierwszymi wykrytymi ("Upgrade to view this issue").
Oznaczenie problemu jako rozwiązanego
curl --request PATCH \
--url https://analytics.flowsery.com/analytics/api/v1/issues/{issueId} \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--data '{ "status": "resolved" }'Zawieszenie problemu
curl --request PATCH \
--url https://analytics.flowsery.com/analytics/api/v1/issues/{issueId} \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--data '{ "status": "suspended" }'200
{
"status": "success",
"data": {
"id": "iss_64f1c2a9e8b4d90012ab34cd",
"websiteId": "cm8abc123",
"title": "Checkout button unresponsive on mobile Safari",
"description": "Tapping the checkout button produces no navigation or feedback. Visitors tap repeatedly and abandon the cart.",
"severity": "critical",
"status": "resolved",
"sessionsCount": 14,
"firstSeenAt": "2026-08-02T09:14:31.000Z",
"lastSeenAt": "2026-08-27T18:40:05.000Z",
"stepsToReplicate": [
"Open the store on an iPhone in Safari",
"Add any product to the cart",
"Tap the checkout button on the cart page"
],
"sampleRecordingId": "rec_9f8e7d6c5b4a",
"externalTicketProvider": "linear",
"externalTicketKey": "SHOP-142",
"externalTicketUrl": "https://linear.app/acme/issue/SHOP-142",
"occurrences": [
{
"description": "Visitor taps the checkout button five times with no response",
"atSeconds": 42,
"severity": "critical"
}
],
"sessions": [
{ "recordingId": "rec_9f8e7d6c5b4a", "atSeconds": 42 }
],
"comments": []
}
}