Publishes an unpublished codespace, creating a new repository and assigning it to the codespace.
The codespace's token is granted write permissions to the repository, allowing the user to push their changes.
This will fail for a codespace that is already published, meaning it has an associated repository.
You must authenticate using a personal access token with the codespace
scope to use this endpoint.
GitHub Apps must have write access to the codespaces
repository permission to use this endpoint. Create a repository from an unpublished codespace
Arguments key codespace-name codespace-name [scalar]
The name of the codespace.
API:
Github Open API
(version: 1.1.4)
Returns 201 application/json codespace-with-full-repository codespace-with-full-repository [object] Attributes
Path to devcontainer.json from repo root used to create Codespace.
Display name for this codespace.
UUID identifying this codespace's environment.
Details about the codespace's git repository.
The number of minutes of inactivity after which this codespace will be automatically stopped.
Text to show user when codespace idle timeout minutes has been overriden by an organization policy
Last known time this codespace was started.
The Azure region where this codespace is located.
API URL to access available alternate machine types for this codespace.
Automatically generated name of this codespace.
Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.
pending_operation_disabled_reason string
Text to show user when codespace is disabled by a pending operation
Whether the codespace was created from a prebuild.
API URL to publish this codespace to a new repository.
API URL for the Pull Request associated with this codespace, if any.
When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"
Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).
API URL to start this codespace.
API URL to stop this codespace.
API URL for this codespace.
URL to access this codespace on the web.
API:
Github Open API
(version: 1.1.4)
403 forbidden forbidden [scalar] API:
Github Open API
(version: 1.1.4)
404 not_found not_found [scalar] API:
Github Open API
(version: 1.1.4)
422 validation_failed validation_failed [scalar]
Validation failed, or the endpoint has been spammed.
API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)