Environment variables

Update environment variable

Changed on

Update an environment variable you previously created. This feature is in beta and admin UI is not yet available.

<div> <code>update:environment_variables</code> </div>
patch/api/v1/environment_variables/{variable_id}

Request

  • Base URL: https://your_kinde_subdomain.kinde.com
  • URL: https://your_kinde_subdomain.kinde.com/api/v1/environment_variables/{variable_id}
  • Auth: HTTP bearer

Request body

keystring

The key to update.

valuestring

The new value for the environment variable.

is_secretboolean

Whether the environment variable is sensitive. Secret variables are not-readable by you or your team after creation.

Example request

{
  "key": "MY_API_KEY",
  "value": "new-secret-value"
}

Response

Environment variable successfully updated.

messagestring

A Kinde generated message.

codestring

A Kinde generated status code.

Example response

{
  "message": "Environment variable updated",
  "code": "ENVIRONMENT_VARIABLE_UPDATED"
}

Changes

    • breaking

      added the new required header request parameter Accept to all path's operations

    • info

      the endpoint scheme security kindeBearerAuth was added to the API

    • info

      the endpoint scheme security ManagementAPI was removed from the API

    • info

      endpoint added