opnform-host-nginx/integrations/zapier/triggers/list_workspaces.js

22 lines
588 B
JavaScript
Raw Normal View History

module.exports = {
operation: {
perform: {
headers: { Accept: 'application/json' },
removeMissingValuesFrom: { body: false, params: false },
url: '{{process.env.BASE_URL}}/external/zapier/workspaces',
},
sample: { id: 1, name: 'My Workspace' },
outputFields: [
{ key: 'id', label: 'ID', type: 'integer' },
{ key: 'name', label: 'Name', type: 'string' },
],
},
display: {
description: "Get the list of all user's workspaces",
hidden: true,
label: 'List Workspaces',
},
key: 'list_workspaces',
noun: 'Workspace',
};