Modify enabled widgets
Headers
-
TARGET-ORGANIZATION-ID
integer(int32) ID of organization, for which the operation must be performed
-
WEAL-TOKEN
string Required API token (can be retrieved from account settings)
Body
Required
widgets
-
contactId
integer -
filters
string -
height
integer(int32) -
id
integer -
isRemoved
boolean -
organizationId
integer -
templateNumber
integer(int32) -
type
string Values are
TREASURY
,PL_STATEMENT
,CASH_FLOW_STATEMENT
,GROSS_MARGIN
,NET_MARGIN
,AVERAGE_RECEIVABLES
,AVERAGE_PAYABLES
,AVERAGE_WEIGHTED_RECEIVABLES
,AVERAGE_WEIGHTED_PAYABLES
,LIQUIDITY_RATIO
,PAYABLES
,VAT
,INVOICES_FOR_REVIEW
,CASH_FLOW_CHART
,OUTSTANDING_RECEIVABLES
,FUTURE_PAYABLES
,INCOME_BREAKDOWN
,EXPENSE_BREAKDOWN
,MONTHLY_INCOME_EXPENSE
,PURCHASE_INVOICE_SCANS_UPLOAD
,INVOICE_SCANS
,ANNUAL_EMPLOYEE_COUNT
,NOTIFICATIONS
,WORKING_CAPITAL_REQUIREMENT
,DOCUMENT_SCANS
,ALERTS_ON_REGISTRY_OF_COMMERCE
,LINES_TO_BE_RECONCILED
,ACTIVE_USERS
, orMONTHLY_LIQUIDITY
. -
width
integer(int32) -
x
integer(int32) -
y
integer(int32)
POST
/api-v1/widget/batch
curl \
--request POST 'http://wyzio.app/api-v1/widget/batch' \
--header "TARGET-ORGANIZATION-ID: 42" \
--header "WEAL-TOKEN: string" \
--data '[{"contactId":42,"filters":"string","height":42,"id":42,"isRemoved":true,"organizationId":42,"templateNumber":42,"type":"TREASURY","width":42,"x":42,"y":42}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"contactId": 42,
"filters": "string",
"height": 42,
"id": 42,
"isRemoved": true,
"organizationId": 42,
"templateNumber": 42,
"type": "TREASURY",
"width": 42,
"x": 42,
"y": 42
}
]
Response examples (200)
[
{
"contactId": 42,
"filters": "string",
"height": 42,
"id": 42,
"isRemoved": true,
"organizationId": 42,
"templateNumber": 42,
"type": "TREASURY",
"width": 42,
"x": 42,
"y": 42
}
]