Update connection
Update bank connection in case the user gets logged out (status on account error or inactive)
PUT /bank/connections/{id}
Required scope:
- entries:rw
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 ( |
|
secret optional string
|
Secret tied to a specific login ( |
|
reminder optional boolean
|
If set to |
|
categorisation optional boolean
|
|
|
repeats optional boolean
|
|
|
transfers optional boolean
|
|
* 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"
}