diff --git a/app/portainer/rest/stack.js b/app/portainer/rest/stack.js index 4bc761552..21432af1f 100644 --- a/app/portainer/rest/stack.js +++ b/app/portainer/rest/stack.js @@ -12,6 +12,7 @@ function StackFactory($resource, API_ENDPOINT_STACKS) { get: { method: 'GET', params: { id: '@id' } }, query: { method: 'GET', isArray: true }, create: { method: 'POST', ignoreLoadingBar: true, params: { id: 'create', subaction: '@method', action: '@type' } }, + save: { method: 'POST', ignoreLoadingBar: true, params: { id: 'save', subaction: '@method', action: '@type' } }, update: { method: 'PUT', params: { id: '@id' }, ignoreLoadingBar: true }, associate: { method: 'PUT', params: { id: '@id', swarmId: '@swarmId', endpointId: '@endpointId', orphanedRunning: '@orphanedRunning', action: 'associate' } }, remove: { method: 'DELETE', params: { id: '@id', external: '@external', endpointId: '@endpointId' } },