Skip to main content
Send value to create or replace the named secret. Returns its name and timestamps without the secret value.

Signature

Method signature on client.secrets:

Parameters

string
required
Project ID with prefix pp..
string
required
The name of a project secret.
string
required
Secret value to store; the API does not return this value.

Returns

Promise<ProjectSecret> Metadata for a project secret. Secret values are never returned.
ProjectSecretName
required
The name of a project secret.
string
required
Time the secret was created, as an ISO 8601 timestamp.
string
required
Time the secret was last updated, as an ISO 8601 timestamp.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: PUT /projects/{projectId}/secrets/{name}.