API

RepoBookmarkProtectionEvent

Operations

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

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/bookmark_protection_events list Recent bookmark protection events

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:

repo_bookmark_protection_events, err := client.RepoBookmarkProtectionEvent(nil).List(map[string]any{"organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(repo_bookmark_protection_events)

Lua

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

local repo_bookmark_protection_events, err = client:RepoBookmarkProtectionEvent():list({ organization_id = "example", repo_id = "example" })

PHP

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

$repo_bookmark_protection_events = $client->RepoBookmarkProtectionEvent()->list(["organization_id" => "example", "repo_id" => "example"]);

Python

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

repo_bookmark_protection_events = client.RepoBookmarkProtectionEvent().list({"organization_id": "example", "repo_id": "example"})

Ruby

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

repo_bookmark_protection_events = client.RepoBookmarkProtectionEvent.list({ "organization_id" => "example", "repo_id" => "example" })

TypeScript

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

const repo_bookmark_protection_events = await client.RepoBookmarkProtectionEvent().list({ organization_id: "example", repo_id: "example" })

Fields

Field Type Required Description
action string Yes Action
actor_kind string Yes Actor Kind
actor_label one,string,null Yes Actor Label
actor_user_id one,string,null Yes Actor User Id
bookmark_name string Yes Bookmark Name
bookmark_protection_rule_id one,string,null Yes Bookmark Protection Rule Id
created_at string Yes Created At
created_at_label one,string,null Yes Created At Label
decision string Yes Decision
id string Yes Id
intent one,string,null Yes Intent
metadata object Yes Metadata
new_target one,string,null Yes New Target
old_target one,string,null Yes Old Target
organization_id string Yes Organization Id
reason_codes array Yes Reason Codes
repository_id string Yes Repository Id
source_request_id one,string,null Yes Source Request Id
updated_at string Yes Updated At
updated_at_label one,string,null Yes Updated At Label

list

GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/bookmark_protection_events

Operation ID: api_v1_bookmark_protection_events.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes
bookmark query string No
limit query integer No

Responses

200: Recent bookmark protection events

application/json

Property Type Required Description
[].action string Yes
[].actor_kind enum: user, vex_automation, system, github_app, service Yes
[].actor_label string Yes
[].actor_user_id string Yes
[].bookmark_name string Yes
[].bookmark_protection_rule_id string Yes
[].created_at string (date-time) Yes
[].created_at_label string Yes
[].decision enum: allowed, denied, bypassed, simulated Yes
[].id string Yes
[].intent string Yes
[].metadata object Yes
[].new_target string Yes
[].old_target string Yes
[].organization_id string Yes
[].reason_codes array of string Yes
[].repository_id string Yes
[].source_request_id string Yes
[].updated_at string (date-time) Yes
[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway