Report pull request cost assignments

Replaces one producer's repository snapshot, optionally retaining named finished PRs.
Named window omissions preserve finished PRs; other omissions withdraw claims.
Frozen ownership changes only through explicit correction receipts until day 90.
A snapshot over a reporting cap returns RESOURCE_EXHAUSTED (HTTP 429) with a google.rpc.ErrorInfo
detail: reason PR_COST_LIMIT, domain ai-optimizer, and scope, limit, current and maximum metadata.
The previous accepted snapshot and other contributors' data stay unchanged. Retrying the same
snapshot cannot succeed. Transient overload returns UNAVAILABLE (HTTP 503) with RetryInfo and
a Retry-After header.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Organization selected by the authenticated request.

Body Params

Version 1 accepts only identifiers, assignment methods, coverage and PR display metadata.
It does not accept prices, prompts, source, paths or session/conversation contents.

int32

Snapshot format version; currently 1.

string

Stable UUID for one reporting installation.

string

Increasing revision for this producer and repository, encoded as a decimal string.

date-time

Time the client assembled this snapshot, not server receipt time.
(-- api-linter: core::0142::time-field-names=disabled
aip.dev/not-precedent: Preserve the versioned snapshot JSON contract's At names. --)

repository
object

Provider identity and optional display name of the reported repository.

pullRequests
array of objects

PR metadata referenced by this snapshot's assignments.

pullRequests
requests
array of objects

Replacement inventory of observed attempts, including unpriced attempts.

requests
coverage
object

Client coverage observations for the supplied request inventory.

retainedPullRequestIds
array of strings

Previously accepted closed or merged PRs to keep when omitted from this upload.
Must not also appear in pull_requests. Supplied attempts override retained copies.

retainedPullRequestIds
windowedPullRequestIds
array of strings

Exact finished PR IDs omitted by the upload window. The server preserves the
already accepted PRs in this list, including during client clock skew and PRs
it last saw open. IDs must be distinct from pull_requests and retained_pull_request_ids.

windowedPullRequestIds
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json