const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
slug: '<string>',
basePriceUsd: '<string>',
includedCreditUsd: '<string>',
includedCreditUnits: 1073741824,
includedCreditUnitLabel: '<string>',
minimumPurchaseUsd: '<string>',
maximumPurchaseUsd: '<string>',
maxClaims: 1073741824,
autoRenewOffered: true,
autoTopUpOffered: true
})
};
fetch('https://api.zeroclick.io/v1/plans/{planId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));