Skip to main content

organizations

Overview

Nameorganizations
TypeResource
Idgithub.codespaces.organizations

Fields

NameDatatype
codespacesarray
total_countinteger

Methods

NameAccessible byRequired ParamsDescription
get_codespaces_for_user_in_orgSELECTorg, usernameLists the codespaces that a member of an organization has for repositories in that organization.

You must authenticate using an access token with the admin:org scope to use this endpoint.
list_in_organizationSELECTorgLists the codespaces associated to a specified organization.

You must authenticate using an access token with the admin:org scope to use this endpoint.
delete_codespaces_access_usersDELETEorg, data__selected_usernamesCodespaces for the specified users will no longer be billed to the organization.

To use this endpoint, the access settings for the organization must be set to selected_members.
For information on how to change this setting, see "Manage access control for organization codespaces."

You must authenticate using an access token with the admin:org scope to use this endpoint.
delete_from_organizationDELETEcodespace_name, org, usernameDeletes a user's codespace.

You must authenticate using an access token with the admin:org scope to use this endpoint.
set_codespaces_accessEXECorg, data__visibilitySets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces access permissions for users according to the visibility.
You must authenticate using an access token with the admin:org scope to use this endpoint.
set_codespaces_access_usersEXECorg, data__selected_usernamesCodespaces for the specified users will be billed to the organization.

To use this endpoint, the access settings for the organization must be set to selected_members.
For information on how to change this setting, see "Manage access control for organization codespaces."

You must authenticate using an access token with the admin:org scope to use this endpoint.
stop_in_organizationEXECcodespace_name, org, usernameStops a user's codespace.

You must authenticate using an access token with the admin:org scope to use this endpoint.