Toshl Developer

Update review

Update a review. A successfull response will be returned as 200 OK with the updated review in the body and a Location header containing the link to the newly created or edited entry.

PUT /entries/review/{id}

Required scope:

Parameters

id *
required
string

Review id.

type *
required
string

Selected type

Possible values: expense, income, transfer, repeat
match
optional
string

Matched entry id

account
optional
string

If none of the possible matches are the missing entry pair, selecting the account will create a new entry on the specified account and match them up.

category
optional
string

Entry category id.

tags
optional
array

An array of tag ids.

* denotes required field/parameter.

Request

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

Response

HTTP/1.1 200 OK
Content-Type: application/json
Location: /entries/142

{
  "id": "42",
  "types": [
    "transfer",
    "income"
  ],
  "matches": [
    "43",
    "44"
  ],
  "accounts": [
    "42",
    "43"
  ]
}