codespaces
Create or update a repository secret
Creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API."
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint. The associated user must be a repository admin.
put/repos/{owner}/{repo}/codespaces/secrets/{secret_name}
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/repos/{owner}/{repo}/codespaces/secrets/{secret_name}
- Auth: none declared
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
secret_namestring required
The name of the secret.
Request body
Response
Response when creating a secret
Empty Object required
An object without any properties.
Changes
No recorded changes to this operation across all 83 revisions of this API.