Description
Returns a Long that represents the number of bytes queried by the workspace of the request since the start time provided.
GET
/api/v1/admin/usage/query
Required OAuth Scopes:
No OAuth scopes are required to use this endpoint.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
startDate | query | string | false | The earliest date of usage to consider |
stopDate | query | string | false | The end date of usage to consider |
Code Samples
curl -X GET https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/query \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/query \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/query" \
--output-document - \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.get('https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/query', headers = headers)
print(r.json())
Returns
200 - OK
Returns a Long that represents the number of bytes uploaded by the workspace of the request since the start time provided.
Example Responses
{
"body": "integer",
"code": "integer"
}