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

id *
required
string

Connection id.

institution *
required
string

Institution id.

token
optional
string

Token used to re-login user.

ext_id
optional
string

External id of the login (saltedge).

secret
optional
string

Secret tied to a specific login (saltedge).

reminder
optional
boolean

If set to true a reminder will be sent to the user if a manual sync connection is not refreshed for a while.

categorisation
optional
boolean

true if this connections categorisation is enabled.

repeats
optional
boolean

true if this connections repeat detection is enabled.

transfers
optional
boolean

true if this connections transfer detection is enabled.

* denotes required field/parameter.

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"
}