Create or Update a secret value in a repository
PUT
/repos/{owner}/{repo}/actions/secrets/{secretname}
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repository
repo
required
string
Name of the repository
secretname
required
string
Name of the secret
Request Body
Section titled “Request Body”Media typeapplication/json
CreateOrUpdateSecretOption defines the properties of the secret to create or update.
object
data
required
Data of the secret. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained.
string
Examplegenerated
{ "data": "example"}Responses
Section titled “Responses”Response when creating a secret
Media typeapplication/json
Response when updating a secret
Media typeapplication/json
APIError is error format response
Media typeapplication/json
APIError is an api error with a message
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}