Rotate a product's signing key
POST
/v1/admin/products/{id}/rotate-signing-key
const url = 'https://api.sealcord.com/v1/admin/products/example/rotate-signing-key';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"keep_previous":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sealcord.com/v1/admin/products/example/rotate-signing-key \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "keep_previous": true }'Generates a new signing key and stores it encrypted; the old public key keeps verifying existing licence keys unless keep_previous is false.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
keep_previous
boolean
Responses
Section titled “Responses”Missing or invalid API key.
Needs scope products:write.