BookmarkProtectionRefreshGithubRequiredCheck
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}/bookmark_protections/refresh_github_required_checks |
create |
GitHub required-check policy snapshot |
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.BookmarkProtectionRefreshGithubRequiredCheck(nil).Create(map[string]any{"organization_id": "example", "repo_id": "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:BookmarkProtectionRefreshGithubRequiredCheck():create({ organization_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->BookmarkProtectionRefreshGithubRequiredCheck()->create(["organization_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.BookmarkProtectionRefreshGithubRequiredCheck().create({ "organization_id": "example", "repo_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.BookmarkProtectionRefreshGithubRequiredCheck.create({ "organization_id" => "example", "repo_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.BookmarkProtectionRefreshGithubRequiredCheck().create({ organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
exclusions |
array |
Yes | Exclusions |
fetched_at |
one,string,null |
No | Fetched At |
fetched_at_label |
one,string,null |
No | Fetched At Label |
github_branch |
string |
Yes | Github Branch |
github_owner |
one,string,null |
No | Github Owner |
github_repository_name |
one,string,null |
No | Github Repository Name |
last_error |
one,string,null |
No | Last Error |
proven |
boolean |
Yes | Proven |
requirements |
array |
Yes | Requirements |
stale |
boolean |
Yes | Stale |
create
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/bookmark_protections/refresh_github_required_checks
Operation ID: refresh_github_required_checks_api_v1_bookmark_protections.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
github_branch |
string |
No |
Responses
200: GitHub required-check policy snapshot
application/json
| Property | Type | Required | Description |
|---|---|---|---|
exclusions |
array of object |
Yes | |
fetched_at |
string (date-time) |
No | |
fetched_at_label |
string |
No | |
github_branch |
string |
Yes | |
github_owner |
string |
No | |
github_repository_name |
string |
No | |
last_error |
string |
No | |
proven |
boolean |
Yes | |
requirements |
array of object |
Yes | |
requirements[].app_id |
integer |
No | |
requirements[].name |
string |
Yes | |
requirements[].source |
enum: vex, github, any |
Yes | |
stale |
boolean |
Yes |