Anonymise a licence
POST
/v1/admin/licences/{id}/anonymise
const url = 'https://api.sealcord.com/v1/admin/licences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/anonymise';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"confirm":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/licences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/anonymise \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "confirm": true }'Anonymise a licence on its software maker’s instruction (cannot be undone). Removes the customer’s data: the address, the external reference, the Polar customer and checkout ids, the status reason, every machine’s id, name, OS and app version, and everything but ids, times, statuses and counts from its audit events. Revokes it if active; it can never be reinstated and its key no longer activates. Idempotent: changed is false when it was anonymised already. Body {"confirm": true}.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
confirm
required
boolean
Responses
Section titled “Responses”Missing or invalid API key.
Needs scope licences:anonymise.