codespaces
Set selected repositories for a user secret
Select the repositories that will use a user's development environment secret.
The authenticated user must have Codespaces access to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the codespace or codespace:secrets scope to use this endpoint.
put/user/codespaces/secrets/{secret_name}/repositories
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/user/codespaces/secrets/{secret_name}/repositories
- Auth: none declared
Path parameters
secret_namestring required
The name of the secret.
Request body
Response
No Content when repositories were added to the selected list
Changes
No recorded changes to this operation across all 23 revisions of this API.