GET /rest/db/completion

Returns the completion percentage (0 to 100) and byte / item counts. Takes optional device and folder parameters:

  • folder specifies the folder ID to calculate completion for. An empty or absent folder parameter means all folders as an aggregate.

  • device specifies the device ID to calculate completion for. An empty or absent device parameter means the local device.

If a device is specified but no folder, completion is calculated for all folders shared with that device.

Example Queries

Completion status for folder abcd-1234 on device I6KAH76-...-3PSROAU:

  1. /rest/db/completion?folder=abcd-1234&device=I6KAH76-...-3PSROAU

Aggregated completion status for device I6KAH76-...-3PSROAU (all folders shared with them):

  1. /rest/db/completion?device=I6KAH76-...-3PSROAU

Completion status for folder abcd-1234 on the local device:

  1. /rest/db/completion?folder=abcd-1234

Aggregated completion status for all folders on the local device:

  1. /rest/db/completion

Example Response

  1. {
  2. "completion": 99.9937565835,
  3. "globalBytes": 156793013575,
  4. "needBytes": 9789241,
  5. "globalItems": 7823,
  6. "needItems": 412,
  7. "needDeletes": 0
  8. }

New in version 1.8.0: The ability to aggregate multiple folders by leaving out the folder ID. Querying data for the local device by leaving out the device ID. Returning the globalItems counter in the response.