GitHub
54 min
the github connector enables automated interaction with github repositories, user information, and organizational data, streamlining development workflows github is a powerful collaboration platform and version control system that enables developers to build, ship, and maintain their software the github turbine connector allows users to automate various github actions such as managing issues, pull requests, and repository contents directly from the swimlane turbine platform by integrating with github, swimlane turbine users can streamline their development and security workflows, enforce compliance, and respond to events in real time, all within a low code automation environment this connector empowers teams to enhance their operational efficiency and maintain robust security practices by leveraging github's extensive api capabilities prerequisites to effectively utilize the github connector for swimlane turbine, ensure you have the following http bearer authentication with the following parameters url the api endpoint url for github token your personal access token (pat) or jwt token for authenticating api requests asset setup to generate a personal access token, please follow the instructions here https //docs github com/en/authentication/keeping your account and data secure/managing your personal access tokens to generate a jwt token, please follow the instructions here https //docs github com/en/apps/creating github apps/authenticating with a github app/generating a json web token jwt for a github app capabilities the github bundle has the following capabilities block a user create a repository dispatch event create an issue create or update file contents get a pull request get a user get an issue get an organization by id get file list organizations revoke pat (fine grained token) task setup create a repository dispatch event this action is used to trigger a webhook event called repository dispatch when you want activity that happens outside of github to trigger a github actions workflow or github app webhook you must configure your github actions workflow or github app to run when the repository dispatch event occurs for an example repository dispatch webhook payload, see "repositorydispatchevent " the client payload parameter is available for any extra information that your workflow might need this parameter is a json payload that will be passed on when the webhook event is dispatched for example, the client payload can include a message that a user would like to send using a github actions workflow or the client payload can be used as a test to debug your workflow oauth app tokens and personal access tokens (classic) need the repo scope to use this endpoint fine grained access tokens for "create a repository dispatch event" this action works with the following fine grained token types github app user access tokens https //docs github com/en/apps/creating github apps/authenticating with a github app/generating a user access token for a github appgithub app installation access tokens https //docs github com/en/apps/creating github apps/authenticating with a github app/generating an installation access token for a github appfine grained personal access tokens https //docs github com/en/authentication/keeping your account and data secure/managing your personal access tokens#creating a fine grained personal access token the fine grained token must have the following permission set "contents" repository permissions (write) github's documentation for this action can be found here https //docs github com/en/rest/repos/repos?apiversion=2022 11 28#create a repository dispatch event configurations http bearer authentication authenticates using a github pat or jwt token configuration parameters parameter description type required url an url to the github host string required token a jwt token or an access token with sufficient permissions string required verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions block a user blocks a specified github user and confirms with a 204 status; returns a 422 error if blocking is not possible endpoint url /user/blocks/{{username}} method put input argument name type required description headers object required http headers for the request x github api version string required parameter for block a user accept string required parameter for block a user username string required name of the resource output parameter type description status code number http status code of the response reason string response reason phrase response text string output field response text example \[ { "status code" 204, "response headers" { "server" "github com", "date" "sat, 04 nov 2023 12 24 59 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "user", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4989", "x ratelimit reset" "1699102435", "x ratelimit used" "11", "x ratelimit resource" "core", "access control expose headers" "etag, link, location, retry after, x github otp, x ratelimit limit, x ratelimit ", "access control allow origin" " ", "strict transport security" "max age=31536000; includesubdomains; preload", "x frame options" "deny" }, "reason" "no content", "response text" "" } ] create a repository dispatch event triggers a repository dispatch webhook event to initiate github actions workflows or app webhooks with specified event type, owner, and repo endpoint url /repos/{{owner}}/{{repo}}/dispatches method post input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive headers object required http headers for the request accept string required setting to application/vnd github+json is recommended x github api version string required parameter for create a repository dispatch event event type string required a custom webhook event name must be 100 characters or fewer client payload object optional json payload with extra information about the webhook event that your action or workflow may use the maximum number of top level properties is 10 the total size of the json payload must be less than 64kb unit boolean optional parameter for create a repository dispatch event integration boolean optional parameter for create a repository dispatch event output parameter type description status code number http status code of the response reason string response reason phrase response text string output field response text example \[ { "status code" 204, "response headers" { "server" "github com", "date" "wed, 18 dec 2024 12 24 59 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "user", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4989", "x ratelimit reset" "1699102435", "x ratelimit used" "11", "x ratelimit resource" "core", "access control expose headers" "etag, link, location, retry after, x github otp, x ratelimit limit, x ratelimit ", "access control allow origin" " ", "strict transport security" "max age=31536000; includesubdomains; preload", "x frame options" "deny" }, "reason" "no content", "response text" "" } ] create an issue creates a new issue in the specified github repository using the provided title requires owner, repo, and additional details endpoint url /repos/{{owner}}/{{repo}}/issues method post input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive headers object required http headers for the request accept string required parameter for create an issue x github api version string required parameter for create an issue title string required the title of the issue body string optional the contents of the issue assignee string optional login for the user that this issue should be assigned to milestone string optional the number of the milestone to associate this issue with labels array optional labels to associate with this issue assignees array optional logins for users to assign to this issue output parameter type description status code number http status code of the response reason string response reason phrase url string url endpoint for the request repository url string url endpoint for the request labels url string url endpoint for the request comments url string url endpoint for the request events url string url endpoint for the request html url string url endpoint for the request id number unique identifier node id string unique identifier number number output field number title string output field title user object output field user login string output field login id number unique identifier node id string unique identifier avatar url string url endpoint for the request gravatar id string unique identifier url string url endpoint for the request html url string url endpoint for the request followers url string url endpoint for the request following url string url endpoint for the request gists url string url endpoint for the request starred url string url endpoint for the request subscriptions url string url endpoint for the request example \[ { "status code" 201, "response headers" { "server" "github com", "date" "sun, 10 sep 2023 09 00 36 gmt", "content type" "application/json; charset=utf 8", "content length" "6126", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "\\"b85f090c17f8a0f07b38d07c42a6a59116fd960958f5b71a5f764ab32759965a\\"", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ repo hook, adm ", "x accepted oauth scopes" "", "github authentication token expiration" "2023 09 17 08 10 24 utc", "location" "https //api github com/repos/swimlane connectors/github test/issues/1", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4990" }, "reason" "created", "json body" { "url" "https //api github com/repos/swimlane connectors/github test/issues/1", "repository url" "https //api github com/repos/swimlane connectors/github test", "labels url" "https //api github com/repos/swimlane connectors/github test/issues/1/labels{/na ", "comments url" "https //api github com/repos/swimlane connectors/github test/issues/1/comments", "events url" "https //api github com/repos/swimlane connectors/github test/issues/1/events", "html url" "https //github com/swimlane connectors/github test/issues/1", "id" 188, "node id" "mi kwdok", "number" 1, "title" "bug", "user" {}, "labels" \[], "state" "open", "locked" false, "assignee" {} } } ] create or update file contents create or update file contents in a github repository, requiring path parameters (owner, repo, path) and json body with message and content endpoint url /repos/{{owner}}/{{repo}}/contents/{{path}} method put input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive path string required path from root to the file to be created or updated headers object required http headers for the request accept string required parameter for create or update file contents x github api version string required parameter for create or update file contents message string required the commit message content string required the file content, using base64 encoding sha string optional required if you are updating a file the blob sha of the file being replaced branch string optional the branch name default the repository’s default branch committer object optional the person that committed the file default the authenticated user name string optional the name of the committer of the commit you'll receive a 422 status code if name is omitted email string optional the email of the committer of the commit you'll receive a 422 status code if email is omitted date string optional date value author object optional parameter for create or update file contents name string optional the name of the author of the commit you'll receive a 422 status code if name is omitted email string optional the email of the author of the commit you'll receive a 422 status code if email is omitted date string optional date value output parameter type description status code number http status code of the response reason string response reason phrase content object response content name string name of the resource path string output field path sha string output field sha size number output field size url string url endpoint for the request html url string url endpoint for the request git url string url endpoint for the request download url string url endpoint for the request type string type of the resource links object output field links self string output field self git string output field git html string output field html commit object output field commit sha string output field sha node id string unique identifier url string url endpoint for the request html url string url endpoint for the request author object output field author name string name of the resource email string output field email date string date value example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sun, 10 sep 2023 08 29 41 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"911292a7951b39bdc0d53e0b0ed712f92385469a64c500a2fc0e186c6d1498ec\\"", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ repo hook, adm ", "x accepted oauth scopes" "", "github authentication token expiration" "2023 09 17 08 10 24 utc", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4997", "x ratelimit reset" "1694337529" }, "reason" "ok", "json body" { "content" {}, "commit" {} } } ] get a pull request retrieve detailed information for a specific pull request in github using the repository owner, repo name, and pull number endpoint url /repos/{{owner}}/{{repo}}/pulls/{{pull number}} method get input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive pull number number required parameter for get a pull request headers object required http headers for the request accept string required parameter for get a pull request x github api version string required parameter for get a pull request output parameter type description status code number http status code of the response reason string response reason phrase url string url endpoint for the request id number unique identifier node id string unique identifier html url string url endpoint for the request diff url string url endpoint for the request patch url string url endpoint for the request issue url string url endpoint for the request commits url string url endpoint for the request review comments url string url endpoint for the request review comment url string url endpoint for the request comments url string url endpoint for the request statuses url string url endpoint for the request number number output field number state string output field state locked boolean output field locked title string output field title user object output field user login string output field login id number unique identifier node id string unique identifier avatar url string url endpoint for the request gravatar id string unique identifier url string url endpoint for the request example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sun, 10 sep 2023 09 19 31 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"14f5e385ca01e477288dbb7e7d33bd5bb23711ee98b7fd5df71a58efba5418b2\\"", "last modified" "wed, 06 sep 2023 16 27 54 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ repo hook, adm ", "x accepted oauth scopes" "", "github authentication token expiration" "2023 09 17 08 10 24 utc", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4999" }, "reason" "ok", "json body" { "url" "https //api github com/repos/octocat/hello world/pulls/1347", "id" 1, "node id" "mdexolb", "html url" "https //github com/octocat/hello world/pull/1347", "diff url" "https //github com/octocat/hello world/pull/1347 diff", "patch url" "https //github com/octocat/hello world/pull/1347 patch", "issue url" "https //api github com/repos/octocat/hello world/issues/1347", "commits url" "https //api github com/repos/octocat/hello world/pulls/1347/commits", "review comments url" "https //api github com/repos/octocat/hello world/pulls/1347/comments", "review comment url" "https //api github com/repos/octocat/hello world/pulls/comments{/number}", "comments url" "https //api github com/repos/octocat/hello world/issues/1347/comments", "statuses url" "https //api github com/repos/octocat/hello world/statuses/6dcb09b5b57875f334f61a ", "number" 1347, "state" "open", "locked" true } } ] get a user retrieve publicly available information about a github user by specifying the username endpoint url /users/{{username}} method get input argument name type required description headers object required http headers for the request x github api version string required parameter for get a user accept string required parameter for get a user username string required name of the resource output parameter type description status code number http status code of the response reason string response reason phrase login string output field login id number unique identifier node id string unique identifier avatar url string url endpoint for the request gravatar id string unique identifier url string url endpoint for the request html url string url endpoint for the request followers url string url endpoint for the request following url string url endpoint for the request gists url string url endpoint for the request starred url string url endpoint for the request subscriptions url string url endpoint for the request organizations url string url endpoint for the request repos url string url endpoint for the request events url string url endpoint for the request received events url string url endpoint for the request type string type of the resource site admin boolean output field site admin name string name of the resource company object output field company blog string output field blog location string output field location email object output field email example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sat, 04 nov 2023 12 21 15 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"a2fdd5420c59742e686712e811415f38e938e83c135f72002e3e7578fae72711\\"", "last modified" "tue, 29 nov 2022 19 44 55 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4990", "x ratelimit reset" "1699102435" }, "reason" "ok", "json body" { "login" "github", "id" 9919, "node id" "mdeyok9yz2fuaxphdglvbjk5mtk=", "avatar url" "https //avatars githubusercontent com/u/9919?v=4", "gravatar id" "", "url" "https //api github com/users/github", "html url" "https //github com/github", "followers url" "https //api github com/users/github/followers", "following url" "https //api github com/users/github/following{/other user}", "gists url" "https //api github com/users/github/gists{/gist id}", "starred url" "https //api github com/users/github/starred{/owner}{/repo}", "subscriptions url" "https //api github com/users/github/subscriptions", "organizations url" "https //api github com/users/github/orgs", "repos url" "https //api github com/users/github/repos", "events url" "https //api github com/users/github/events{/privacy}" } } ] get an issue retrieve details for a specific issue from a github repository using the owner, repo, and issue number endpoint url /repos/{{owner}}/{{repo}}/issues/{{issue number}} method get input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive issue number number required parameter for get an issue headers object required http headers for the request accept string required parameter for get an issue x github api version string required parameter for get an issue output parameter type description status code number http status code of the response reason string response reason phrase url string url endpoint for the request repository url string url endpoint for the request labels url string url endpoint for the request comments url string url endpoint for the request events url string url endpoint for the request html url string url endpoint for the request id number unique identifier node id string unique identifier number number output field number title string output field title user object output field user login string output field login id number unique identifier node id string unique identifier avatar url string url endpoint for the request gravatar id string unique identifier url string url endpoint for the request html url string url endpoint for the request followers url string url endpoint for the request following url string url endpoint for the request gists url string url endpoint for the request starred url string url endpoint for the request subscriptions url string url endpoint for the request example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sun, 10 sep 2023 09 07 57 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"b85f090c17f8a0f07b38d07c42a6a59116fd960958f5b71a5f764ab32759965a\\"", "last modified" "sun, 10 sep 2023 09 00 36 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ repo hook, adm ", "x accepted oauth scopes" "repo", "github authentication token expiration" "2023 09 17 08 10 24 utc", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4989" }, "reason" "ok", "json body" { "url" "https //api github com/repos/swimlane connectors/github test/issues/1", "repository url" "https //api github com/repos/swimlane connectors/github test", "labels url" "https //api github com/repos/swimlane connectors/github test/issues/1/labels{/na ", "comments url" "https //api github com/repos/swimlane connectors/github test/issues/1/comments", "events url" "https //api github com/repos/swimlane connectors/github test/issues/1/events", "html url" "https //github com/swimlane connectors/github test/issues/1", "id" 1889, "node id" "i kwdo", "number" 1, "title" "bug", "user" {}, "labels" \[], "state" "open", "locked" false, "assignee" {} } } ] get an organization by id retrieve details of a specific github organization using its unique id, requiring both headers and the 'orgid' path parameter endpoint url /orgs/{{orgid}} method get input argument name type required description headers object required http headers for the request x github api version string required parameter for get an organization by id accept string required parameter for get an organization by id orgid string required unique identifier output parameter type description status code number http status code of the response reason string response reason phrase login string output field login id number unique identifier node id string unique identifier url string url endpoint for the request repos url string url endpoint for the request events url string url endpoint for the request hooks url string url endpoint for the request issues url string url endpoint for the request members url string url endpoint for the request public members url string url endpoint for the request avatar url string url endpoint for the request description string output field description name string name of the resource company object output field company blog string output field blog location string output field location email object output field email twitter username object name of the resource is verified boolean output field is verified has organization projects boolean output field has organization projects has repository projects boolean output field has repository projects public repos number output field public repos public gists number output field public gists example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sat, 04 nov 2023 12 18 22 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"834f4948c757254f52bcf9431917b61e686bf22a9aba5324d662c440dbdc79ac\\"", "last modified" "tue, 29 nov 2022 19 44 55 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "admin\ org, read\ org, repo, user, write\ org", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4991", "x ratelimit reset" "1699102435" }, "reason" "ok", "json body" { "login" "github", "id" 9919, "node id" "mdeyok9yz2fuaxphdglvbjk5mtk=", "url" "https //api github com/orgs/github", "repos url" "https //api github com/orgs/github/repos", "events url" "https //api github com/orgs/github/events", "hooks url" "https //api github com/orgs/github/hooks", "issues url" "https //api github com/orgs/github/issues", "members url" "https //api github com/orgs/github/members{/member}", "public members url" "https //api github com/orgs/github/public members{/member}", "avatar url" "https //avatars githubusercontent com/u/9919?v=4", "description" "how people build software ", "name" "github", "company" null, "blog" "https //github com/about" } } ] get file retrieves the content of a specified file or directory from a github repository, requiring the repository's owner, name, and file path endpoint url /repos/{{owner}}/{{repo}}/contents/{{path}} method get input argument name type required description owner string required the account owner of the repository the name is not case sensitive repo string required the name of the repository without the git extension the name is not case sensitive path string required file path or directory path from root headers object required http headers for the request accept string required parameter for get file x github api version string required parameter for get file ref string optional parameter for get file output parameter type description status code number http status code of the response reason string response reason phrase name string name of the resource path string output field path sha string output field sha size number output field size url string url endpoint for the request html url string url endpoint for the request git url string url endpoint for the request download url string url endpoint for the request type string type of the resource content string response content encoding string output field encoding links object output field links self string output field self git string output field git html string output field html example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sun, 10 sep 2023 08 38 19 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"7d71b040dbc5ed0cee2775d7bc31bf9962bb65b3\\"", "last modified" "sun, 10 sep 2023 08 33 32 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ repo hook, adm ", "x accepted oauth scopes" "", "github authentication token expiration" "2023 09 17 08 10 24 utc", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4993" }, "reason" "ok", "json body" { "name" "readme md", "path" "readme md", "sha" "7d71b040dbc5ed0cee2775d7bc31bf9962bb65b3", "size" 40, "url" "https //api github com/repos/swimlane connectors/github test/contents/readme md? ", "html url" "https //github com/swimlane connectors/github test/blob/main/readme md", "git url" "https //api github com/repos/swimlane connectors/github test/git/blobs/7d71b040d ", "download url" "https //raw\ githubusercontent com/swimlane connectors/github test/main/readme md ", "type" "file", "content" "iymgvghpcybpcyb0zxn0ihjlywrtzqokclrlc3qgu3vjy2vzc2z1ba==\n", "encoding" "base64", " links" {} } } ] list organizations retrieves a list of all organizations on github in the order they were created, requiring specific header information endpoint url /organizations method get input argument name type required description headers object required http headers for the request x github api version string required parameter for list organizations accept string required parameter for list organizations since number optional parameter for list organizations per page number optional parameter for list organizations output parameter type description status code number http status code of the response reason string response reason phrase example \[ { "status code" 200, "response headers" { "server" "github com", "date" "sat, 04 nov 2023 12 09 27 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "cache control" "private, max age=60, s maxage=60", "vary" "accept, authorization, cookie, x github otp, accept encoding, accept, x requeste ", "etag" "w/\\"7a188c41cd70b54373cb4a941d92eb1cc2950b97dfbd498e62b4477be6d00a05\\"", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "", "x github media type" "github v3; format=json", "link" "\<https //api github com/organizations?since=374\&per page=10>; rel=\\"next\\", \<https ", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4994", "x ratelimit reset" "1699102435" }, "reason" "ok", "json body" \[ { "login" "errfree", "id" 44, "node id" "mdeyok9yz2fuaxphdglvbjq0", "url" "https //api github com/orgs/errfree", "repos url" "https //api github com/orgs/errfree/repos", "events url" "https //api github com/orgs/errfree/events", "hooks url" "https //api github com/orgs/errfree/hooks", "issues url" "https //api github com/orgs/errfree/issues", "members url" "https //api github com/orgs/errfree/members{/member}", "public members url" "https //api github com/orgs/errfree/public members{/member}", "avatar url" "https //avatars githubusercontent com/u/44?v=4", "description" null }, { "login" "engineyard", "id" 81, "node id" "mdeyok9yz2fuaxphdglvbjgx", "url" "https //api github com/orgs/engineyard", "repos url" "https //api github com/orgs/engineyard/repos", "events url" "https //api github com/orgs/engineyard/events", "hooks url" "https //api github com/orgs/engineyard/hooks", "issues url" "https //api github com/orgs/engineyard/issues", "members url" "https //api github com/orgs/engineyard/members{/member}", "public members url" "https //api github com/orgs/engineyard/public members{/member}", "avatar url" "https //avatars githubusercontent com/u/81?v=4", "description" "" }, { "login" "ministrycentered", "id" 119, "node id" "mdeyok9yz2fuaxphdglvbjexoq==", "url" "https //api github com/orgs/ministrycentered", "repos url" "https //api github com/orgs/ministrycentered/repos", "events url" "https //api github com/orgs/ministrycentered/events", "hooks url" "https //api github com/orgs/ministrycentered/hooks", "issues url" "https //api github com/orgs/ministrycentered/issues", "members url" "https //api github com/orgs/ministrycentered/members{/member}", "public members url" "https //api github com/orgs/ministrycentered/public members{/member}", "avatar url" "https //avatars githubusercontent com/u/119?v=4", "description" "" } ] } ] revoke pat updates an organization member's resource access by revoking a specified fine grained personal access token in github endpoint url /orgs/{{orgid}}/personal access tokens/{{patid}} method post input argument name type required description headers object required http headers for the request x github api version string required parameter for revoke pat accept string required parameter for revoke pat orgid string required unique identifier patid string required unique identifier action string required parameter for revoke pat output parameter type description status code number http status code of the response reason string response reason phrase response text string output field response text example \[ { "status code" 204, "response headers" { "server" "github com", "date" "sat, 04 nov 2023 12 24 59 gmt", "x oauth scopes" "admin\ enterprise, admin\ gpg key, admin\ org, admin\ org hook, admin\ public key, ad ", "x accepted oauth scopes" "user", "x github media type" "github v3; format=json", "x github api version selected" "2022 11 28", "x ratelimit limit" "5000", "x ratelimit remaining" "4989", "x ratelimit reset" "1699102435", "x ratelimit used" "11", "x ratelimit resource" "core", "access control expose headers" "etag, link, location, retry after, x github otp, x ratelimit limit, x ratelimit ", "access control allow origin" " ", "strict transport security" "max age=31536000; includesubdomains; preload", "x frame options" "deny" }, "reason" "no content", "response text" "" } ] response headers header description example access control allow origin http response header access control allow origin access control expose headers http response header access control expose headers etag, link, location, retry after, x github otp, x ratelimit limit, x ratelimit remaining, x ratelimit used, x ratelimit resource, x ratelimit reset, x oauth scopes, x accepted oauth scopes, x poll interval, x github media type, x github sso, x github request id, deprecation, sunset cache control directives for caching mechanisms private, max age=60, s maxage=60 content encoding http response header content encoding gzip content length the length of the response body in bytes 6126 content security policy http response header content security policy default src 'none' content type the media type of the resource application/json; charset=utf 8 date the date and time at which the message was originated wed, 18 dec 2024 12 24 59 gmt etag an identifier for a specific version of a resource w/"834f4948c757254f52bcf9431917b61e686bf22a9aba5324d662c440dbdc79ac" github authentication token expiration http response header github authentication token expiration 2023 09 17 08 10 24 utc last modified the date and time at which the origin server believes the resource was last modified tue, 29 nov 2022 19 44 55 gmt link http response header link https //api github com/organizations?since=374\&per page=10 https //api github com/organizations?since=374\&per page=10 ; rel="next", https //api github com/organizations{?since} https //api github com/organizations{?since} ; rel="first" location the url to redirect a page to https //api github com/repos/swimlane connectors/github test/issues/1 https //api github com/repos/swimlane connectors/github test/issues/1 referrer policy http response header referrer policy origin when cross origin, strict origin when cross origin server information about the software used by the origin server github com strict transport security http response header strict transport security max age=31536000; includesubdomains; preload transfer encoding http response header transfer encoding chunked vary http response header vary accept, authorization, cookie, x github otp, accept encoding, accept, x requested with x accepted oauth scopes http response header x accepted oauth scopes repo x content type options http response header x content type options nosniff x frame options http response header x frame options deny x github api version selected http response header x github api version selected 2022 11 28 x github media type http response header x github media type github v3; format=json x github request id http response header x github request id 2820 2f8dd 22e229 286bfd 6546381a x oauth scopes http response header x oauth scopes admin \ enterprise , admin \ gpg key , admin \ org , admin \ org hook , admin \ repo hook , admin \ ssh signing key , audit log, codespace, copilot, delete \ packages , delete repo, gist, notifications, project, repo, user, workflow, write \ discussion , write \ packages notes github api documentation https //docs github com/en/rest/quickstart?apiversion=2022 11 28