Update metadata or rotate a secret
secrets:updateAuthenticationUpdates the nullable description and/or replaces the encrypted value. The stable secret name cannot be changed. A semantic no-op succeeds and is audited.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Secret names are immutable and therefore absent. Send description:null to clear the note; send value to rotate the encrypted value.
1 <= propertiesdescription?|length <= 2000value?stringWrite-only replacement value, at most 16384 encoded UTF-8 bytes.
1 <= lengthUpdated safe metadata; the submitted value is never echoed.
application/json- response
Safe write-only secret metadata. No plaintext, ciphertext, data-key ID, or wrapped key is ever included.
id*stringuuidname*SecretNameStable name of an active workspace secret. The referenced plaintext is never returned through the API.
^[A-Za-z_][A-Za-z0-9_]{1,63}$2 <= length <= 64description*string|nullfingerprint_suffix*|Up to the final four characters of the submitted value, for operator identification only.
length <= 4last_used_at*|date-timearchived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X PATCH 'https://api.kejue.co/v1/secrets/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "fingerprint_suffix": "stri", "last_used_at": "2019-08-24T14:15:22Z", "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}