Toshl Developer

Update export

Update an export. Currently only seen can be updated, all other parameters are ignored. Make sure to send an up to date modified.

PUT /exports/{id}

Required scope:

Parameters

modified *
required
string

Specifies when the export was last modified.

seen
optional
boolean

Marked as true if user has already seen the export after it was generated. If not set to true the system will send out a push notification after export was generated (with a slight delay).

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/exports/42-export \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{json}'

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "id": "42-export",
  "resources": ["expenses", "incomes"],
  "formats": ["csv", "xls"],
  "accounts": ["43"],
  "categories": ["44"],
  "from": "2020-10-01",
  "to": "2020-10-31",
  "created": "2020-10-04T13:55:15Z",
  "modified": "2020-10-04 13:55:15.324",
  "status": "generated",
  "data": {
    "path": "https://export.toshl.com",
    "filename": "export.zip",
    "filesize": 356271
  },
  "seen": false,
  "type": "export"
}