MENU
      Update Secret Value

        Update Secret Value


        Article summary

        Overview

        Edit secret values.
        The value of a secret in the REVOKE (deletion requested) status can't be changed.

        Caution

        All stages are edited with the entered values. (If the stage value is empty, it removes the stage value.)
        To update only a specific stage, use the Update Secret Stage Value API.

        PUT https://secretmanager.apigw.ntruss.com/api/v1/secrets/{secretId}/values
        HTTP

        Request

        Request parameter

        Parameter nameTypeDescription
        secretIdStringSecret ID

        Request body

        {
          "previous": "string",
          "active": "string",
          "pending": "string"
        }
        JSON
        Parameter nameTypeDescription
        previousStringPrevious status secret value
        activeStringActive status secret value
        pendingStringPending status secret value

        Response

        Response body

        {
          "code": "SUCCESS",
          "data": {
            "encryptedSecretChain": {
              "previous": "string",
              "active": "string",
              "pending": "string"
            }
          }
        }
        JSON
        Parameter nameTypeDescription
        encryptedSecretChain.previousStringPrevious status encrypted secret value
        encryptedSecretChain.activeStringActive status encrypted secret value
        encryptedSecretChain.pendingStringPending status encrypted secret value

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.