mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
feat(API): Add Public API endpoint for updating variables (#15315)
This commit is contained in:
committed by
GitHub
parent
2674d7fe61
commit
52bf9203f0
@@ -27,6 +27,15 @@ export = {
|
||||
res.status(201).send();
|
||||
},
|
||||
],
|
||||
updateVariable: [
|
||||
isLicensed('feat:variables'),
|
||||
apiKeyHasScopeWithGlobalScopeFallback({ scope: 'variable:update' }),
|
||||
async (req: VariablesRequest.Update, res: Response) => {
|
||||
await Container.get(VariablesController).updateVariable(req);
|
||||
|
||||
res.status(204).send();
|
||||
},
|
||||
],
|
||||
deleteVariable: [
|
||||
isLicensed('feat:variables'),
|
||||
apiKeyHasScopeWithGlobalScopeFallback({ scope: 'variable:delete' }),
|
||||
|
||||
Reference in New Issue
Block a user