Sharing Flows
This tutorial shows how flows can be shared in Appmixer either using the API or the SDK.
Was this helpful?
Was this helpful?
appmixer.api.updateFlow('9089f275-f5a5-4796-ba23-365412c5666e', {
sharedWith: [{
email: 'david@client.io',
permissions: ['read', 'start', 'stop']
}]
}).then(() => {
console.log('Flow successfully shared.');
}).catch((err) => {
console.log('Something went wrong.', err);
});appmixer.api.updateFlow('9089f275-f5a5-4796-ba23-365412c5666e', {
sharedWith: []
}).then(() => {
console.log('Flow successfully unshared.');
}).catch((err) => {
console.log('Something went wrong.', err);
});appmixer.ui.FlowManager({
// ... other options ...
options: {
sharePermissions: [
{ label: 'Read', value: 'read' }
]
}
});
...
appmixer.ui.Designer({
// ... other options ...
options: {
sharePermissions: [
{ label: 'Read', value: 'read' }
]
}
});appmixer.ui.FlowManager({
// ... other options ...
options: {
shareTypes: [
{ label: 'Email', value: 'email', placeholder: 'Enter an email address' },
{ label: 'Scope', value: 'scope', placeholder: 'Enter a scope' },
{ label: 'Domain', value: 'domain', placeholder: 'Enter a domain' }
],
sharePermissions: [
{ label: 'Read', value: 'read' }
]
}
});curl -XPUT "https://api.appmixer.com/flows/9089f275-f5a5-4796-ba23-365412c5666e" \
-H "Content-Type: application/json" \
-d '{ "sharedWith": [{ "email": "david@client.io", "permissions": ["read", "start", "stop"]}] }'