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/api.github.com/api.github.com.json
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10024,6 +10024,94 @@
10024
10024
}
10025
10025
}
10026
10026
},
10027
+
"/orgs/{org}/codespaces/billing": {
10028
+
"put": {
10029
+
"summary": "Set the visibility of organization codespaces",
10030
+
"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.",
10054
+
"enum": [
10055
+
"disabled",
10056
+
"selected_members",
10057
+
"all_members",
10058
+
"all_members_and_outside_collaborators"
10059
+
]
10060
+
},
10061
+
"selected_usernames": {
10062
+
"type": "array",
10063
+
"description": "The usernames of the organization members who should be granted access to codespaces in the organization. Required when `visibility` is `selected_members`.",
10064
+
"items": {
10065
+
"type": "string"
10066
+
}
10067
+
}
10068
+
},
10069
+
"required": [
10070
+
"visibility"
10071
+
]
10072
+
},
10073
+
"examples": {
10074
+
"default": {
10075
+
"value": {
10076
+
"visibility": "selected_members",
10077
+
"selected_usernames": [
10078
+
"johnDoe",
10079
+
"atomIO"
10080
+
]
10081
+
}
10082
+
}
10083
+
}
10084
+
}
10085
+
}
10086
+
},
10087
+
"responses": {
10088
+
"204": {
10089
+
"description": "Response when successfully modifying permissions."
10090
+
},
10091
+
"304": {
10092
+
"$ref": "#/components/responses/not_modified"
10093
+
},
10094
+
"400": {
10095
+
"description": "Users are neither members nor collaborators of this organization."
Copy file name to clipboardExpand all lines: descriptions/api.github.com/api.github.com.yaml
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7264,6 +7264,70 @@ paths:
7264
7264
enabledForGitHubApps: false
7265
7265
category: codespaces
7266
7266
subcategory: organizations
7267
+
"/orgs/{org}/codespaces/billing":
7268
+
put:
7269
+
summary: Set the visibility of organization codespaces
7270
+
description: |-
7271
+
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.
7272
+
You must authenticate using an access token with the `admin:org` scope to use this endpoint.
Copy file name to clipboardExpand all lines: descriptions/api.github.com/dereferenced/api.github.com.deref.json
+206Lines changed: 206 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71807,6 +71807,212 @@
71807
71807
}
71808
71808
}
71809
71809
},
71810
+
"/orgs/{org}/codespaces/billing": {
71811
+
"put": {
71812
+
"summary": "Set the visibility of organization codespaces",
71813
+
"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.",
71826
+
"in": "path",
71827
+
"required": true,
71828
+
"schema": {
71829
+
"type": "string"
71830
+
}
71831
+
}
71832
+
],
71833
+
"requestBody": {
71834
+
"required": true,
71835
+
"content": {
71836
+
"application/json": {
71837
+
"schema": {
71838
+
"type": "object",
71839
+
"properties": {
71840
+
"visibility": {
71841
+
"type": "string",
71842
+
"description": "Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization.",
71843
+
"enum": [
71844
+
"disabled",
71845
+
"selected_members",
71846
+
"all_members",
71847
+
"all_members_and_outside_collaborators"
71848
+
]
71849
+
},
71850
+
"selected_usernames": {
71851
+
"type": "array",
71852
+
"description": "The usernames of the organization members who should be granted access to codespaces in the organization. Required when `visibility` is `selected_members`.",
71853
+
"items": {
71854
+
"type": "string"
71855
+
}
71856
+
}
71857
+
},
71858
+
"required": [
71859
+
"visibility"
71860
+
]
71861
+
},
71862
+
"examples": {
71863
+
"default": {
71864
+
"value": {
71865
+
"visibility": "selected_members",
71866
+
"selected_usernames": [
71867
+
"johnDoe",
71868
+
"atomIO"
71869
+
]
71870
+
}
71871
+
}
71872
+
}
71873
+
}
71874
+
}
71875
+
},
71876
+
"responses": {
71877
+
"204": {
71878
+
"description": "Response when successfully modifying permissions."
71879
+
},
71880
+
"304": {
71881
+
"description": "Not modified"
71882
+
},
71883
+
"400": {
71884
+
"description": "Users are neither members nor collaborators of this organization."
71885
+
},
71886
+
"404": {
71887
+
"description": "Resource not found",
71888
+
"content": {
71889
+
"application/json": {
71890
+
"schema": {
71891
+
"title": "Basic Error",
71892
+
"description": "Basic Error",
71893
+
"type": "object",
71894
+
"properties": {
71895
+
"message": {
71896
+
"type": "string"
71897
+
},
71898
+
"documentation_url": {
71899
+
"type": "string"
71900
+
},
71901
+
"url": {
71902
+
"type": "string"
71903
+
},
71904
+
"status": {
71905
+
"type": "string"
71906
+
}
71907
+
}
71908
+
}
71909
+
}
71910
+
}
71911
+
},
71912
+
"422": {
71913
+
"description": "Validation failed, or the endpoint has been spammed.",
0 commit comments