Skip to content

Create or Update a secret value in an organization

PUT
/orgs/{org}/actions/secrets/{secretname}
org
required
string

Name of organization

secretname
required
string

Name of the secret

Media type application/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
Example generated
{
"data": "example"
}

Response when creating a secret

Media type application/json

Response when updating a secret

Media type application/json

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}