Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
Path Parameters
Query Parameters
Request Body
The request body should contain a KeystoreUpdateDTO object with the following structure:Request Body Fields
Keystore Environment Object
Notes
- Request Format: This API uses
application/jsoncontent type. Keystore file content must be base64-encoded and included in the JSON body (not uploaded as a file). - All fields are optional - only provided fields will be updated
namecan be changed, but must remain unique within the projectenvironmentNameis used to identify the environment (notenvironmentId)- Keystore file content must be base64-encoded if provided
Response
Same as Create Keystore response format.cURL Example
Example 1: Update Keystore with JWK Updates
Example 2: Update Keystore and Clear JWK References
Example 3: Update Keystore Name Only
Notes and Warnings
-
Keystore Name:
- Can be changed during update
- New name must be unique within the project
- If name is changed, the keystore will be accessible by the new name
-
Referenced JWKs:
- If
jwkUpdateAction=UPDATE, JWKs created from this keystore will be re-parsed and updated - If
jwkUpdateAction=NULLIFYor not provided (default), JWK references will be cleared updateScopedetermines which JWKs to update whenjwkUpdateAction=UPDATE:SAME_PROJECTorALL_PROJECTS- Default behavior (
NULLIFY) ensures JWKs don’t reference deleted or updated keystores
- If
-
Environment Name:
- Use
environmentName(notenvironmentId) to specify the environment - Environment name must exist and be accessible
- Use
-
Keystore Type:
keyStoreTypemust match the actual keystore file formatJKS: Java KeyStore formatPKCS12: PKCS#12 format (also known as .p12 or .pfx)
-
Partial Updates:
- Only provided fields will be updated
- Omitted fields will remain unchanged
-
Automatic Deployment:
- Keystore is automatically deployed to all specified environments after update
- Deployment results are returned in the response
Permissions
User must haveSECRETS + MANAGE permission in the project. For deployment operations (when deploying keystores to environments), user must also have SECRETS + DEPLOY_UNDEPLOY permission.
Related Documentation
- List Keystores - List all keystores
- Create Keystore - Create a new keystore

