Node.js email template PATCH fails on quota and version lock

Problem
@genesyscloud/api-node-client handles auth fine, but the template update payload doesn’t pass the storage quota check.

Code

const res = await client.emailTemplatesApi.patchEmailTemplate(templateId, { htmlContent: '<span>{{var}}</span>', localization: ['en-US'], version: 3 });

Error
409 Conflict blocks the optimistic lock.

Question
Need the exact JSON structure to bypass the validation pipeline since the webhook callback isn’t firing.

The 409 error pops up when the version drifts. The API won’t accept stale locks due to race conditions, so version: 3 fails. A live integer is needed.

Hit the GET endpoint first. Pass version: fetchedData.version into the PATCH payload. This keeps the lock aligned.