POST
/
api
/
end_users
/
{end_user_id_or_heron_id}
/
bulk_category_feedback
curl --request POST \
  --url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/bulk_category_feedback \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "category": {
    "heron_id": "ctg_7NaM8xrCaZv67M2vrrmdnz",
    "label": "Insurance"
  },
  "source": null,
  "transaction_heron_ids": [],
  "transaction_reference_ids": []
}'
{
  "num_annotations": 1
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

end_user_id_or_heron_id
string
required

Query Parameters

high_priority
boolean
default:false

Whether to process the feedback with high priority

Body

application/json
A list of objects containing a Transaction's heron id and the suggested Category. If you provide a `heron_id` for Category, you don't need to provide other fields. If `heron_id` is provided, we disregard `label`.
category
object
required
source
string | null

your identifier for where the feedback comes from e.g. bob_the_underwriter

Maximum length: 120
transaction_heron_ids
string[]

List of transaction heron IDs

transaction_reference_ids
string[]

List of transaction reference IDs

Response

201 - application/json
OK
num_annotations
integer

The number of category annotations added

Example:

1