Skip to main content
PATCH
/
fastedge
/
v1
/
secrets
/
{id}
Update a secret
curl --request PATCH \
  --url https://api.gcore.com/fastedge/v1/secrets/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "comment": "<string>",
  "secret_slots": [
    {
      "slot": 123,
      "value": "<string>"
    }
  ]
}
'
{
  "name": "<string>",
  "comment": "<string>",
  "app_count": 123,
  "secret_slots": [
    {
      "slot": 123,
      "checksum": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

Id of the secret

Body

application/json

Secret details

name
string

The unique name of the secret.

comment
string

A description or comment about the secret.

secret_slots
object[]

A list of secret slots associated with this secret.

Response

Ok

name
string

The unique name of the secret.

comment
string

A description or comment about the secret.

app_count
integer

The number of applications that use this secret.

secret_slots
object[]

A list of secret slots associated with this secret.