API

ChangeFileReviewCheckpoint

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/file_review_checkpoints create Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.ChangeFileReviewCheckpoint(nil).Create(map[string]any{"change_id": "example", "organization_id": "example", "repo_id": "example", "patchset_id": "example", "path": "example", "request_id": "example", "review_action": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:ChangeFileReviewCheckpoint():create({ change_id = "example", organization_id = "example", repo_id = "example", patchset_id = "example", path = "example", request_id = "example", review_action = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->ChangeFileReviewCheckpoint()->create(["change_id" => "example", "organization_id" => "example", "repo_id" => "example", "patchset_id" => "example", "path" => "example", "request_id" => "example", "review_action" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.ChangeFileReviewCheckpoint().create({ "change_id": "example", "organization_id": "example", "repo_id": "example", "patchset_id": "example", "path": "example", "request_id": "example", "review_action": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.ChangeFileReviewCheckpoint.create({ "change_id" => "example", "organization_id" => "example", "repo_id" => "example", "patchset_id" => "example", "path" => "example", "request_id" => "example", "review_action" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.ChangeFileReviewCheckpoint().create({ change_id: "example", organization_id: "example", repo_id: "example", patchset_id: "example", path: "example", request_id: "example", review_action: "example" })

Fields

Field Type Required Description
patchset_id string Yes Patchset Id
path string Yes Path
request_id string Yes Request Id
review_action string Yes Review Action

create

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/vcs/changes/{id}/file_review_checkpoints

Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_vcs_changes_id_file_review_checkpoints.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
patchset_id string Yes
path string Yes
request_id string Yes
review_action enum: reviewed, unreviewed Yes

Responses

200: Success

application/json

The response is object.

201: Recorded checkpoint and refreshed exact-content review projection

application/json

Property Type Required Description
message string Yes
patchset_id string Yes
reviewed_files array of object Yes
reviewed_files[].path string Yes
reviewed_files[].reviewed_at string (date-time) No
reviewed_files[].reviewed_patchset_number integer Yes
401: Unauthorized
403: The actor cannot mutate comments on this change

application/json

Property Type Required Description
error string Yes
404: Not found
422: Change submission was invalid

application/json

Property Type Required Description
error string Yes
502: Bad gateway