Secrets

Add a Secret

Creates a new secret. This does not replace previous secrets of this type.

post/api/secrets/{secretType}

Request

  • Base URL: http://localhost:5000
  • URL: http://localhost:5000/api/secrets/{secretType}
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Path parameters

secretType'jwt' | 'dashboard_password' | 'secret_key_base' required

The Secret type

Request body

secretstring required

The secret value.

expiresAtstring

Date and time in ISO8601 format with timezone.

Example request

{
  "secret": "Secret value",
  "expiresAt": "2019-09-16T15:05:03.712909Z"
}

Response

Secret created successfully.

Changes

No recorded changes to this operation across all 1 revision of this API.