Главная / Мониторинг изменений Diff через API

Мониторинг изменений Diff через API

Мониторинг изменений Diff через API. HTTP-запросы, параметры, схемы ответов и порядок работы с Labrika.

В этой статье

Мониторинг изменений

API позволяет получить проекты мониторинга, историю проверок и изменения отдельных страниц. Используйте эти данные для своей панели наблюдения, выгрузки результатов или проверки изменений перед публикацией.

Получите проект, затем выберите отчёт из его истории и загрузите строки отчёта. Идентификатор страницы url_md5 берите из строки отчёта. Значение last выбирает последний завершённый отчёт указанного проекта; для повторяемой выгрузки используйте конкретный report_id.
Разрешения
  • diff-projects:read
  • diff-reports:read
  • Начинайте с /public-api/v1/diff-projects, чтобы получить diff_project_id.
  • История отчётов: /public-api/v1/diff-projects/{diff_project_id}/reports.
  • Последний отчёт: передайте last вместо report_id.
  • include_state=true в /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rows добавляет состояние страницы и сведения о доступности файлов.
Списки проектов, отчётов и строк возвращаются в data. Для следующей страницы передайте pagination.next_offset как offset, пока pagination.has_more равно true. limit: от 1 до 10000, по умолчанию 1000; offset: от 0, по умолчанию 0.
GET /public-api/v1/diff-projects

Возвращает проекты мониторинга текущего пользователя. Идентификатор для следующих запросов находится в data[].diff_project_id.

GET /public-api/v1/diff-projects/{diff_project_id}/reports

Возвращает историю проверок проекта: идентификатор report_id, статус, дату создания, число страниц и предупреждений.

GET /public-api/v1/diff-projects/{diff_project_id}/report-graph

Данные для графика истории проверок проекта: используйте их, чтобы показать динамику результатов мониторинга.

GET /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rows

Возвращает страницы выбранной проверки и обнаруженные изменения. В report_id передайте идентификатор из истории проверок или last.

Параметры
Параметр Тип Описание
include_state boolean true добавляет state: заголовки, метаданные, отслеживаемые теги и доступность файлов в state.files. По умолчанию false.
limit / offset integer Постраничная выгрузка строк. Максимальный limit — 10000.
has_alert boolean Фильтр страниц, для которых сформированы уведомления об изменениях.
GET /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/pages/{url_md5}

Подробные данные страницы на момент выбранного отчёта.

Строки с состоянием
curl
curl --fail-with-body --silent --show-error --location \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Accept: application/json' \
  'https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0'
JavaScript
async function main () {
  const response = await fetch("https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
    method: "GET",
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "Accept": "application/json",
    },
    signal: AbortSignal.timeout(30_000),
  })

  if (!response.ok) {
    const responseText = await response.text()
    throw new Error(`HTTP ${response.status}: ${responseText}`)
  }

  const responseText = await response.text()
  const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText

  console.log(data)
}

main().catch(error => {
  console.error(error)
  process.exitCode = 1
})
Python
import json
import requests

url = "https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.request(
    "GET",
    url,
    headers=headers,
    timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php

$curl = curl_init('https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0');

if ($curl === false) {
    throw new RuntimeException('Unable to initialize cURL');
}

curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer YOUR_API_KEY',
        'Accept: application/json',
    ],
]);

$response = curl_exec($curl);

if ($response === false) {
    $message = curl_error($curl);
    curl_close($curl);
    throw new RuntimeException('Network error: ' . $message);
}

$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);

if ($status < 200 || $status >= 300) {
    throw new RuntimeException("HTTP $status: $response");
}

if ($response !== '' && str_contains($contentType, 'application/json')) {
    print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
    echo $response;
}
Go
package main

import (
	"context"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
	defer cancel()

	request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", nil)
	if err != nil {
		panic(err)
	}

	request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	request.Header.Set("Accept", "application/json")

	client := &http.Client{Timeout: 30 * time.Second}
	response, err := client.Do(request)
	if err != nil {
		panic(err)
	}
	defer response.Body.Close()

	if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
		errorBody, readErr := io.ReadAll(response.Body)
		if readErr != nil {
			panic(readErr)
		}
		panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
	}

	if _, err := io.Copy(os.Stdout, response.Body); err != nil {
		panic(err)
	}
}
Google Apps Script
function callLabrikaPublicAPI() {
  const response = UrlFetchApp.fetch("https://app.labrika.ru/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
    method: "get",
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "Accept": "application/json",
    },
    followRedirects: false,
    muteHttpExceptions: true,
  });
  const status = response.getResponseCode();
  if (status < 200 || status >= 300) {
    throw new Error('HTTP ' + status + ': ' + response.getContentText());
  }
  Logger.log(response.getContentText());
}

Вернуться к содержанию

Справочник методов API — Diff

Выберите метод в оглавлении. Проверьте его HTTP-метод, путь, права доступа, обязательные параметры и тело запроса. JSON-блоки со словами schema, properties и $ref описывают контракт; их не нужно отправлять как готовое тело запроса. Примеры запросов и схемы ответов подписаны отдельно.

Методы в этом разделе

GET /public-api/v1/diff-projects

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffProjectListResponse · ErrorResponse

limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Ответы

200

Проекты Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffProjectListResponse"
      }
    }
  }
}
default

Для отсутствующего или неверного ключа заголовки лимита относятся к неудачным попыткам с IP. После авторизации они описывают применимый лимит ключа или аккаунта. При блокировке до проверки лимита или недоступности счётчика заголовки могут отсутствовать. X-RateLimit-Reset — Unix timestamp в секундах; Retry-After при 429 — задержка в секундах.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}
status (query)
{
  "schema": {
    "type": "string",
    "enum": [
      "progress",
      "done",
      "failed"
    ]
  }
}
created_from (query)
{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}
created_to (query)
{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

Ответы

200

Отчёты Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportListResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/report-graph

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportGraphResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Ответы

200

График отчёта Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportGraphResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/rows

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportRowsResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
report_id (path)

Xid отчёта или литерал last. Литерал last принимается только в этом параметре пути.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}
include_state (query)
{
  "schema": {
    "type": "boolean",
    "default": false
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}
search (query)
{
  "schema": {
    "type": "string",
    "maxLength": 300
  }
}
url_md5 (query)
{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}
has_alert (query)
{
  "schema": {
    "type": "boolean"
  }
}
rule_id (query)
{
  "schema": {
    "type": "string"
  }
}
http_status (query)
{
  "schema": {
    "type": "integer",
    "minimum": 100,
    "maximum": 599
  }
}
changed_field (query)
{
  "schema": {
    "type": "string"
  }
}
alert_trigger_code (query)
{
  "schema": {
    "type": "string"
  }
}
alert_trigger_group (query)
{
  "schema": {
    "type": "string"
  }
}

Ответы

200

Строки отчёта Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportRowsResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffPageDetailResponse · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
report_id (path)

Xid отчёта или литерал last. Литерал last принимается только в этом параметре пути.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}
url_md5 (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/URLMD5"
  }
}

Ответы

200

Сведения о странице Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffPageDetailResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

Вернуться к содержанию

URL и правила мониторинга изменений

URL и правила влияют только на будущие отчёты. Исторические отчёты продолжают показывать данные, рассчитанные на момент запуска отчёта.

409 rule_in_use: Это правило используется для автодобавления и импорта URL, а также в API. Перед удалением выберите и сохраните другое правило для новых страниц.

Разрешения
  • GET → diff-urls:read, diff-rules:read
  • POST / PATCH / DELETE → diff-urls:write, diff-rules:write
  • POST /public-api/v1/diff-projects/{diff_project_id}/urls?dry_run=true проверяет URL без записи.
  • Idempotency-Key рекомендуется для bulk-import URL.
  • При POST отсутствие alert_rule_id или null закрепляет текущее правило для новых страниц из настроек списка URL. PATCH с null явно назначает это текущее правило выбранным URL. Последующая смена настройки не меняет уже добавленные страницы; повторный POST существующего URL сохраняет его прежнее правило. Если выбор не сохранён, ответ — 409 default_rule_not_configured.
  • Удаление URL не удаляет исторические строки старых отчётов.
  • Удалить правило можно только если оно не default и к нему явно не привязаны URL.

URL: urls — массив до 1000 абсолютных HTTP/HTTPS-адресов. url_md5 берите из ответа API после нормализации, не вычисляйте из исходной строки. alert_rule_id=null или отсутствие поля означает правило проекта; effective_rule_id показывает фактически применяемое правило, uses_default_rule всегда равен false. dry_run=true не записывает URL: смотрите would_create_count и errors. Пакетное назначение принимает от 1 до 10000 url_md5s. Пагинация: limit 1–10000 (по умолчанию 1000), offset от 0.

Правило: name — 1–32 символа; parsing_javascript, screenshot_desktop, screenshot_mobile и available — boolean. screenshot_delay — 1–10 секунд, один знак после запятой; percent_diff_html/text/meta — 0–100%; load_time_more — 0,1–10 секунд; min_page_size/max_page_size — 0–10000000 байт, минимум не больше максимума. expected_http_status берите из rules/expected-http-statuses. tracked_tags: до 6 элементов, уникальный number 1–6, mode css или regex, pattern до 1000 символов. missing_html/appearing_html: до 20 строк по 1000 символов. Необязательные пороги допускают null.

POST правила возвращает 201 и data; PATCH возвращает 200 и data, DELETE — 204 без тела. PATCH заменяет редактируемые настройки правила: передавайте полный набор нужных полей, включая name. Пропущенные boolean становятся false, массивы очищаются, необязательные значения становятся null. Сначала получите правило через GET. Правило проекта по умолчанию и правило с явно привязанными URL удалять нельзя.

Проверка URL
http/httpsПоддерживаются только абсолютные HTTP/HTTPS URL.
IDNНациональные домены поддерживаются и нормализуются в punycode.
domain_blockedДомен запрещён продуктовым blacklist.
unsafe_urlURL отклонён SSRF-защитой.

Вернуться к содержанию

Справочник методов API — URLs

Выберите метод в оглавлении. Проверьте его HTTP-метод, путь, права доступа, обязательные параметры и тело запроса. JSON-блоки со словами schema, properties и $ref описывают контракт; их не нужно отправлять как готовое тело запроса. Примеры запросов и схемы ответов подписаны отдельно.

Методы в этом разделе

GET /public-api/v1/diff-projects/{id}/urls

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Ответы

200

Отслеживаемые URL.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLListResponse"
      }
    }
  }
}
default

Для отсутствующего или неверного ключа заголовки лимита относятся к неудачным попыткам с IP. После авторизации они описывают применимый лимит ключа или аккаунта. При блокировке до проверки лимита или недоступности счётчика заголовки могут отсутствовать. X-RateLimit-Reset — Unix timestamp в секундах; Retry-After при 429 — задержка в секундах.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/urls

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLAddRequest · DiffURLAddResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
dry_run (query)
{
  "schema": {
    "type": "boolean",
    "default": false
  }
}
Idempotency-Key (header)
{
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 255
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLAddRequest"
      }
    }
  }
}

Ответы

200

Результат добавления URL.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLAddResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

DELETE /public-api/v1/diff-projects/{id}/urls/{url_md5}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
url_md5 (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/URLMD5"
  }
}

Ответы

204

Удалено. Тело ответа пустое.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/urls/{url_md5}/rule

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
url_md5 (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/URLMD5"
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchRequest"
      }
    }
  }
}

Ответы

200

Результат назначения правила URL.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/urls/rule

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLBulkRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLBulkRulePatchRequest"
      }
    }
  }
}

Ответы

200

Результат назначения правила URL.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

Вернуться к содержанию

Справочник методов API — Rules

Выберите метод в оглавлении. Проверьте его HTTP-метод, путь, права доступа, обязательные параметры и тело запроса. JSON-блоки со словами schema, properties и $ref описывают контракт; их не нужно отправлять как готовое тело запроса. Примеры запросов и схемы ответов подписаны отдельно.

Методы в этом разделе

GET /public-api/v1/diff-projects/{id}/rules

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Ответы

200

Правила оповещений.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleListResponse"
      }
    }
  }
}
default

Для отсутствующего или неверного ключа заголовки лимита относятся к неудачным попыткам с IP. После авторизации они описывают применимый лимит ключа или аккаунта. При блокировке до проверки лимита или недоступности счётчика заголовки могут отсутствовать. X-RateLimit-Reset — Unix timestamp в секундах; Retry-After при 429 — задержка в секундах.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/rules

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleWriteRequest"
      }
    }
  }
}

Ответы

201

Правило оповещений.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/rules/expected-http-statuses

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleExpectedHTTPStatusesResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Ответы

200

Ожидаемые HTTP-статусы.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleExpectedHTTPStatusesResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/rules/{rule_id}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Ответы

200

Правило оповещений.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/rules/{rule_id}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleWriteRequest"
      }
    }
  }
}

Ответы

200

Правило оповещений.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

DELETE /public-api/v1/diff-projects/{id}/rules/{rule_id}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Ответы

204

Удалено. Тело ответа пустое.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

Вернуться к содержанию

Запуск проверки изменений сайта

Этот раздел описывает запуск новой проверки в отчёте «Мониторинг изменений». Проверка охватывает все отслеживаемые URL выбранного проекта. Сначала проверьте баланс и рассчитайте стоимость, затем отправьте запрос запуска с заголовком Idempotency-Key. Расчёт стоимости не списывает средства.

Разрешения
  • diff-reports:run
  • /public-api/v1/diff-projects/{diff_project_id}/balance показывает доступные источники оплаты.
  • /public-api/v1/diff-projects/{diff_project_id}/reports/cost возвращает подписанный cost_estimate_id на 10 минут.
  • /public-api/v1/diff-projects/{diff_project_id}/reports/run списывает оплату и ставит проверку изменений страниц в очередь.
  • Проверка запускается для всех URL проекта: передайте scope=all_urls.
  • При повторе используйте тот же API-ключ, Idempotency-Key и неизменные параметры запроса.

При включённом автодобавлении /reports/cost сначала обновляет список URL и назначает новым страницам сохранённое правило проекта. /reports/run повторяет подготовку; если количество страниц или стоимость изменились, возвращает 409 cost_estimate_mismatch без оплаты. Получите новый расчёт и повторите запуск с новым Idempotency-Key. Существующие URL и их правила сохраняются.

GET/public-api/v1/diff-projects/{diff_project_id}/balance

Проверить баланс и доступные варианты оплаты.

POST/public-api/v1/diff-projects/{diff_project_id}/reports/cost

Рассчитать стоимость. Деньги на этом шаге не списываются.

{
  "scope": "all_urls",
  "force_recheck": false
}
POST/public-api/v1/diff-projects/{diff_project_id}/reports/run

Запустить проверку изменений страниц проекта. Заголовок Idempotency-Key обязателен.

Idempotency-Key: run-report-20260531-001
{
  "cost_estimate_id": "COST_ESTIMATE_ID",
  "payment_option": "auto",
  "scope": "all_urls",
  "force_recheck": false
}
GET/public-api/v1/diff-projects/{diff_project_id}/reports/runs/{run_id}

Проверить статус запуска: pending, progress, done, failed.

После тайм-аута или ошибки сервера проверьте GET /public-api/v1/diff-projects/{diff_project_id}/reports/runs и GET /public-api/v1/diff-projects/{diff_project_id}/reports: ошибка ответа не означает, что запуск не состоялся. Не отправляйте параллельные запросы запуска и не используйте новый ключ повтора, пока результат предыдущего запроса не выяснен.

Вернуться к содержанию

Справочник методов API — Runs

Выберите метод в оглавлении. Проверьте его HTTP-метод, путь, права доступа, обязательные параметры и тело запроса. JSON-блоки со словами schema, properties и $ref описывают контракт; их не нужно отправлять как готовое тело запроса. Примеры запросов и схемы ответов подписаны отдельно.

Методы в этом разделе

GET /public-api/v1/diff-projects/{id}/balance

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffBalanceResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Ответы

200

Баланс и способы оплаты.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffBalanceResponse"
      }
    }
  }
}
default

Для отсутствующего или неверного ключа заголовки лимита относятся к неудачным попыткам с IP. После авторизации они описывают применимый лимит ключа или аккаунта. При блокировке до проверки лимита или недоступности счётчика заголовки могут отсутствовать. X-RateLimit-Reset — Unix timestamp в секундах; Retry-After при 429 — задержка в секундах.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/reports/cost

Перед расчётом стоимости добавляет новые URL по сохранённому режиму проекта и закрепляет за ними выбранное правило. Существующие URL и их правила сохраняются. Расчёт не резервирует и не списывает кредиты или деньги.

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffCostRequest · DiffCostResponse · ErrorResponse · XID

Параметры

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffCostRequest"
      }
    }
  }
}

Ответы

200

Подписанный расчёт стоимости.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffCostResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/reports/run

Повторяет подготовку URL перед оплатой. Если итоговая стоимость или количество страниц отличаются от cost_estimate_id, возвращает 409 cost_estimate_mismatch без списания. Получите новый расчёт и повторите запуск с новым Idempotency-Key.

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunRequest · DiffRunResponse · ErrorResponse · XID

Параметры

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
Idempotency-Key (header)
{
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 255
  }
}

Запрос

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunRequest"
      }
    }
  }
}

Ответы

200

Запуск Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/runs

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 100
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Ответы

200

Запуски Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunListResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}

Параметры

Связанные модели данных: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
run_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Ответы

200

Запуск Diff.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunResponse"
      }
    }
  }
}
default
{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

Вернуться к содержанию