PUT
/
fastedge
/
v1
/
secrets
/
{id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
secret = client.fastedge.secrets.replace(
    id=0,
    name="name",
)
print(secret.app_count)
{
  "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

The body is of type object.

Response

200
application/json

Ok

The response is of type object.