API Reference

Retrieve workspace upload usage


Returns a Long that represents the number of bytes uploaded by the workspace associated with this request from the start time provided to now.

GET /api/v1/admin/usage/upload


Required OAuth Scopes:

No OAuth scopes are required to use this endpoint.


startDatequerystringfalseThe starting point to begin considering usage
stopDatequerystringfalseThe ending point when considering usage

Code Samples

curl -X GET https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/upload  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/upload  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/prep/api/v1/admin/usage/upload" \
 --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/upload', headers = headers)



200 - OK

Returns a JSON object with a body property, which contains the number of bytes uploaded.

Example Responses

  "body": "integer",
  "code": "integer"