We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e647a8 commit 24ebabdCopy full SHA for 24ebabd
apps/workspaces/tasks.py
@@ -116,7 +116,20 @@ def async_create_admin_subcriptions(workspace_id: int) -> None:
116
platform = PlatformConnector(fyle_credentials)
117
payload = {
118
'is_enabled': True,
119
- 'webhook_url': '{}/workspaces/{}/fyle/webhook_callback/'.format(settings.API_URL, workspace_id)
+ 'webhook_url': '{}/workspaces/{}/fyle/webhook_callback/'.format(settings.API_URL, workspace_id),
120
+ 'subscribed_resources': [
121
+ 'EXPENSE',
122
+ 'REPORT',
123
+ 'CATEGORY',
124
+ 'PROJECT',
125
+ 'COST_CENTER',
126
+ 'EXPENSE_FIELD',
127
+ 'DEPENDENT_EXPENSE_FIELD',
128
+ 'CORPORATE_CARD',
129
+ 'EMPLOYEE',
130
+ 'TAX_GROUP',
131
+ 'ORG_SETTING'
132
+ ]
133
}
134
platform.subscriptions.post(payload)
135
0 commit comments