Toshl Developer

Update connection

Update bank connection in case the user gets logged out (status on account error or inactive)

PUT /bank/connections/{id}

Required scope:

Parameters

institution
required
string

Institution id.

token
required
string

Token used to re-login user.

Request

$ curl https://api.toshl.com/bank/connections/42 \
  -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",
  "institution": "42",
  "accounts": ["42"],
  "name": "American Express",
  "unsorted": 0,
  "status": "connected"
}