-
Notifications
You must be signed in to change notification settings - Fork 8
Create ODR Report
Leow Jun Shou edited this page Jul 18, 2023
·
1 revision
The On Demand Reporting (ODR) API is to create ODR report for Account Activity and Workspace Membership Activity.
- Permission access inherited Account Settings.
Operation |
---|
Create an ODR report |
The following example create an ODR report of an Account with ID 123.
POST /accounts/123/settings/ondemandreport HTTP/1.1
Accept: application/vnd.huddle.data+json
Authorization: Bearer frootymcnooty/vonbootycherooty
{
"OnDemandReportType": 1,
"StartDate": "2022-04-23T18:25:43.511Z",
"EndDate": "2022-04-28T18:25:43.511Z"
}
Name | Description | Type | Value |
---|---|---|---|
OnDemandReportType | On Demand Report type | Boolean | 1 - WorkspaceMembershipActivity, 2 - AccountActivity |
StartDate | Start date for report activity generate | DateTime (Nullable), format yyyy-MM-dd HH:mm:ss.z | 2022-04-23T18:25:43.511Z |
EndDate | End date for report activity generate | DateTime (Nullable), format yyyy-MM-dd HH:mm:ss.z | 2022-04-28T18:25:43.511Z |
If successful the method returns a 204 No Content code.
HTTP/1.1 204 No Content
Case | Response |
---|---|
Invalid ODR report type | 400 Bad Request |
StartDate and EndDate are not exists for Account {AccountId} | 400 Bad Request |
StartDate later than EndDate for Account {AccountId} | 400 Bad Request |
StartDate and EndDate are not set in the past for Account {AccountId} | 400 Bad Request |
User {UserId} is not allowed to create OnDemand Report for accountId {AccountID} | 403 Forbidden |
Cannot find Account {AccountID} | 404 Not Found |
- Basic concepts
-
Resources
- Actor
- Approvals
- BulkProcess
- Calendar
- Membership
- Company
- Document
- Document library settings
- Folder
- Paged Folder
- Pins
- Integrations
- Form
- Friends
- Invitation
- Link
- Document Lock
- Folder Lock
- Localisation
- MemberAutocomplete
- Notifications
- Offline item
- PeopleBulkProcess
- Permissions
- Presence
- PublishedDocuments
- Recents
- Recommendations
- Recycle Bin
- Search
- Share
- Tasks (Todos), File Requests, Approvals
- Tasks on Documents
- Actions
- UserApprovals
- User
- VersionHistory
- Workspace
- Workspaces
- SamlPartners
- Logout
- Impersonation
- Administration
- WebHooks