|
10295 | 10295 | } |
10296 | 10296 | }, |
10297 | 10297 | "/orgs/{org}/custom_roles/{role_id}": { |
| 10298 | + "get": { |
| 10299 | + "summary": "Get a custom role", |
| 10300 | + "description": "**Note**: This operation is in beta and is subject to change.\n\nGets a custom repository role that is available to all repositories owned by the organization.\n\nTo use this operation, the authenticated user must be an administrator for the organization and must use an access token with `admin:org` scope.\nGitHub Apps must have the `organization_custom_roles:write` organization permission to use this endpoint.\n\nFor more information on custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization).\"", |
| 10301 | + "tags": [ |
| 10302 | + "orgs" |
| 10303 | + ], |
| 10304 | + "operationId": "orgs/get-custom-role", |
| 10305 | + "externalDocs": { |
| 10306 | + "description": "API method documentation", |
| 10307 | + "url": "https://docs.github.com/rest/reference/orgs/#get-a-custom-role" |
| 10308 | + }, |
| 10309 | + "parameters": [ |
| 10310 | + { |
| 10311 | + "$ref": "#/components/parameters/org" |
| 10312 | + }, |
| 10313 | + { |
| 10314 | + "$ref": "#/components/parameters/role-id" |
| 10315 | + } |
| 10316 | + ], |
| 10317 | + "responses": { |
| 10318 | + "200": { |
| 10319 | + "description": "Response", |
| 10320 | + "content": { |
| 10321 | + "application/json": { |
| 10322 | + "schema": { |
| 10323 | + "$ref": "#/components/schemas/organization-custom-repository-role" |
| 10324 | + }, |
| 10325 | + "examples": { |
| 10326 | + "default": { |
| 10327 | + "value": { |
| 10328 | + "id": 8030, |
| 10329 | + "name": "Labeler", |
| 10330 | + "description": "A role for who can label issues and PRs", |
| 10331 | + "base_role": "read", |
| 10332 | + "permissions": [ |
| 10333 | + "add_label" |
| 10334 | + ], |
| 10335 | + "organization": { |
| 10336 | + "login": "github", |
| 10337 | + "id": 9919, |
| 10338 | + "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", |
| 10339 | + "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", |
| 10340 | + "gravatar_id": "", |
| 10341 | + "url": "https://api.github.com/users/github", |
| 10342 | + "html_url": "https://github.com/github", |
| 10343 | + "followers_url": "https://api.github.com/users/github/followers", |
| 10344 | + "following_url": "https://api.github.com/users/github/following{/other_user}", |
| 10345 | + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", |
| 10346 | + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", |
| 10347 | + "subscriptions_url": "https://api.github.com/users/github/subscriptions", |
| 10348 | + "organizations_url": "https://api.github.com/users/github/orgs", |
| 10349 | + "repos_url": "https://api.github.com/users/github/repos", |
| 10350 | + "events_url": "https://api.github.com/users/github/events{/privacy}", |
| 10351 | + "received_events_url": "https://api.github.com/users/github/received_events", |
| 10352 | + "type": "Organization", |
| 10353 | + "site_admin": false |
| 10354 | + }, |
| 10355 | + "created_at": "2022-07-04T22:19:11Z", |
| 10356 | + "updated_at": "2022-07-04T22:19:11Z" |
| 10357 | + } |
| 10358 | + } |
| 10359 | + } |
| 10360 | + } |
| 10361 | + } |
| 10362 | + }, |
| 10363 | + "404": { |
| 10364 | + "$ref": "#/components/responses/not_found" |
| 10365 | + } |
| 10366 | + }, |
| 10367 | + "x-github": { |
| 10368 | + "githubCloudOnly": false, |
| 10369 | + "enabledForGitHubApps": true, |
| 10370 | + "category": "orgs", |
| 10371 | + "subcategory": "custom-roles" |
| 10372 | + } |
| 10373 | + }, |
10298 | 10374 | "patch": { |
10299 | 10375 | "summary": "Update a custom role", |
10300 | 10376 | "description": "**Note**: This operation is in beta and subject to change.\n\nUpdates a custom repository role that can be used by all repositories owned by the organization.\n\nTo use this endpoint the authenticated user must be an administrator for the organization and must use an access token with `admin:org` scope.\nGitHub Apps must have the `organization_custom_roles:write` organization permission to use this endpoint.\n\nFor more information about custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization).\"", |
|
0 commit comments