Update Key Rotation Policy

PUT {{apiPath}}/environments/{{envID}}/keyRotationPolicies/{{krpID}}

The PUT /environments/{{envID}}/keyRotationPolicies/{{krpID}} operation updates the specified KRP for an environment.

Prerequisites

For property descriptions, see Key Rotation Policy data model.

PropertyTypeRequired?
algorithmStringRequired
currentKeyIdUUIDN/A
dnStringRequired
idUUIDN/A
keyLengthIntegerRequired
nameStringRequired
nextKeyIdUUIDN/A
rotatedAtDateN/A
rotationPeriodIntegerOptional
signatureAlgorithmStringRequired
usageTypeStringRequired
validityPeriodIntegerRequired

Request Body

{"name"=>"Test Key Rotation Policy update", "dn"=>"CN=Test Key Rotation Policy, OU=Ping Identity, O=Ping Identity, L=, ST=, C=US", "algorithm"=>"RSA", "keyLength"=>2048, "validityPeriod"=>365, "signatureAlgorithm"=>"SHA256withRSA", "usageType"=>"SIGNING", "rotationPeriod"=>120}

RESPONSES

status: OK

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/keyRotationPolicies/fe1f3377-3d11-49fc-901b-8657eaa3960f"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"fe1f3377-3d11-49fc-901b-8657eaa3960f","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"name":"Test Key Rotation Policy update","usageType":"SIGNING","default":false,"dn":"CN=Test Key Rotation Policy, OU=Ping Identity, O=Ping Identity, L=, ST=, C=US","algorithm":"RSA","keyLength":2048,"validityPeriod":365,"signatureAlgorithm":"SHA256withRSA","rotationPeriod":120,"currentKeyId":"3a2207a0-944f-11ee-b003-6bd4f5a214b0","nextKeyId":"3a2d5240-944f-11ee-b003-6bd4f5a214b0","rotatedAt":"2023-12-06T15:50:49.168Z"}