Değişiklik kontrolleri: maliyet ve başlatma
Değişiklik kontrollerinin maliyetini hesaplama ve başlatma HTTP yöntemlerini inceleyin. Parametreler, kimlikler, durumlar ve örnek istekler açıklanır.
Bu sayfada
- GET /public-api/v1/diff-projects/{id}/balance
- POST /public-api/v1/diff-projects/{id}/reports/cost
- POST /public-api/v1/diff-projects/{id}/reports/run
- GET /public-api/v1/diff-projects/{id}/reports/runs
- GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}
İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.
GET /public-api/v1/diff-projects/{id}/balance
Parametreler
İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffBalanceResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Yanıtlar
200
Bakiye ve ödeme seçenekleri.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffBalanceResponse"
}
}
}
}
default
Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.
{
"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
Maliyet tahmininden önce, projenin kayıtlı moduna göre yeni URL'ler ekler ve seçilen kuralı bunlara atar. Mevcut URL'ler ve kuralları korunur. Tahmin, kredi veya para ayırmaz ya da tahsil etmez.
İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffCostRequest · DiffCostResponse · ErrorResponse · XID
Parametreler
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
İstek
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffCostRequest"
}
}
}
}
Yanıtlar
200
İmzalı maliyet tahmini.
{
"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
Ödemeden önce URL'leri yeniden hazırlar. Nihai maliyet veya sayfa sayısı cost_estimate_id değerinden farklıysa ücret almadan 409 cost_estimate_mismatch döndürür. Yeni bir tahmin alın ve yeni bir Idempotency-Key ile yeniden deneyin.
İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunRequest · DiffRunResponse · ErrorResponse · XID
Parametreler
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
İstek
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunRequest"
}
}
}
}
Yanıtlar
200
Diff çalıştırması.
{
"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
Parametreler
İlgili veri modelleri: 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
}
}
Yanıtlar
200
Diff çalıştırmaları.
{
"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}
Parametreler
İlgili veri modelleri: 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"
}
}
Yanıtlar
200
Diff çalıştırması.
{
"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"
}
}
}
}
