カスタムリポジトリロール
List custom repository roles in an organization
Works with GitHub Apps
List the custom repository roles available in this organization. In order to see custom repository roles in an organization, the authenticated user must be an organization owner.
For more information on custom repository roles, see "Managing custom repository roles for an organization".
パラメータ
Headers |
---|
名前, 種類, 説明 |
accept stringSetting to |
Path parameters |
名前, 種類, 説明 |
organization_id string必須 |
HTTP response status codes
Status code | 説明 |
---|---|
200 | Response - list of custom role names |
コードサンプル
get /organizations /{organization_id} /custom_roles
curl \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token <TOKEN>" \
https://api.github.com/organizations/ORGANIZATION_ID/custom_roles
Response - list of custom role names
Status: 200
{
"total_count": 2,
"custom_roles": [
{
"id": 8030,
"name": "Developer"
},
{
"id": 8031,
"name": "Designer"
}
]
}