You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: descriptions-next/api.github.com/api.github.com.json
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10074,6 +10074,94 @@
10074
10074
}
10075
10075
}
10076
10076
},
10077
+
"/orgs/{org}/codespaces/billing": {
10078
+
"put": {
10079
+
"summary": "Set the visibility of organization codespaces",
10080
+
"description": "Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces billing permissions for users according to the visibility.\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.",
"description": "Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization.",
10104
+
"enum": [
10105
+
"disabled",
10106
+
"selected_members",
10107
+
"all_members",
10108
+
"all_members_and_outside_collaborators"
10109
+
]
10110
+
},
10111
+
"selected_usernames": {
10112
+
"type": "array",
10113
+
"description": "The usernames of the organization members who should be granted access to codespaces in the organization. Required when `visibility` is `selected_members`.",
10114
+
"items": {
10115
+
"type": "string"
10116
+
}
10117
+
}
10118
+
},
10119
+
"required": [
10120
+
"visibility"
10121
+
]
10122
+
},
10123
+
"examples": {
10124
+
"default": {
10125
+
"value": {
10126
+
"visibility": "selected_members",
10127
+
"selected_usernames": [
10128
+
"johnDoe",
10129
+
"atomIO"
10130
+
]
10131
+
}
10132
+
}
10133
+
}
10134
+
}
10135
+
}
10136
+
},
10137
+
"responses": {
10138
+
"204": {
10139
+
"description": "Response when successfully modifying permissions."
10140
+
},
10141
+
"304": {
10142
+
"$ref": "#/components/responses/not_modified"
10143
+
},
10144
+
"400": {
10145
+
"description": "Users are neither members nor collaborators of this organization."
Copy file name to clipboardExpand all lines: descriptions-next/api.github.com/api.github.com.yaml
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7287,6 +7287,70 @@ paths:
7287
7287
enabledForGitHubApps: false
7288
7288
category: codespaces
7289
7289
subcategory: organizations
7290
+
"/orgs/{org}/codespaces/billing":
7291
+
put:
7292
+
summary: Set the visibility of organization codespaces
7293
+
description: |-
7294
+
Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces billing permissions for users according to the visibility.
7295
+
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
Copy file name to clipboardExpand all lines: descriptions-next/api.github.com/dereferenced/api.github.com.deref.json
+212Lines changed: 212 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83433,6 +83433,218 @@
83433
83433
}
83434
83434
}
83435
83435
},
83436
+
"/orgs/{org}/codespaces/billing": {
83437
+
"put": {
83438
+
"summary": "Set the visibility of organization codespaces",
83439
+
"description": "Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces billing permissions for users according to the visibility.\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.",
"description": "The organization name. The name is not case sensitive.",
83452
+
"in": "path",
83453
+
"required": true,
83454
+
"schema": {
83455
+
"type": "string"
83456
+
}
83457
+
}
83458
+
],
83459
+
"requestBody": {
83460
+
"required": true,
83461
+
"content": {
83462
+
"application/json": {
83463
+
"schema": {
83464
+
"type": "object",
83465
+
"properties": {
83466
+
"visibility": {
83467
+
"type": "string",
83468
+
"description": "Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization.",
83469
+
"enum": [
83470
+
"disabled",
83471
+
"selected_members",
83472
+
"all_members",
83473
+
"all_members_and_outside_collaborators"
83474
+
]
83475
+
},
83476
+
"selected_usernames": {
83477
+
"type": "array",
83478
+
"description": "The usernames of the organization members who should be granted access to codespaces in the organization. Required when `visibility` is `selected_members`.",
83479
+
"items": {
83480
+
"type": "string"
83481
+
}
83482
+
}
83483
+
},
83484
+
"required": [
83485
+
"visibility"
83486
+
]
83487
+
},
83488
+
"examples": {
83489
+
"default": {
83490
+
"value": {
83491
+
"visibility": "selected_members",
83492
+
"selected_usernames": [
83493
+
"johnDoe",
83494
+
"atomIO"
83495
+
]
83496
+
}
83497
+
}
83498
+
}
83499
+
}
83500
+
}
83501
+
},
83502
+
"responses": {
83503
+
"204": {
83504
+
"description": "Response when successfully modifying permissions."
83505
+
},
83506
+
"304": {
83507
+
"description": "Not modified"
83508
+
},
83509
+
"400": {
83510
+
"description": "Users are neither members nor collaborators of this organization."
83511
+
},
83512
+
"404": {
83513
+
"description": "Resource not found",
83514
+
"content": {
83515
+
"application/json": {
83516
+
"schema": {
83517
+
"title": "Basic Error",
83518
+
"description": "Basic Error",
83519
+
"type": "object",
83520
+
"properties": {
83521
+
"message": {
83522
+
"type": "string"
83523
+
},
83524
+
"documentation_url": {
83525
+
"type": "string"
83526
+
},
83527
+
"url": {
83528
+
"type": "string"
83529
+
},
83530
+
"status": {
83531
+
"type": "string"
83532
+
}
83533
+
}
83534
+
}
83535
+
}
83536
+
}
83537
+
},
83538
+
"422": {
83539
+
"description": "Validation failed, or the endpoint has been spammed.",
0 commit comments