Report coding API
7 operations. Back to the API overview. Examples use synthetic data.
Rc queue
GET /admin/v1/report-coding/queue
Needs the permission: documents:review.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
limit | query | string | optional | - |
offset | query | string | optional | - |
status | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
counts | any | optional | - |
items | any | optional | - |
notice | any | optional | - |
status | any | optional | - |
{
"counts": {},
"items": {},
"notice": {},
"status": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/report-coding/queue"Rc result
GET /admin/v1/report-coding/results/{tx}
Needs the permission: documents:review.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
tx | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
notice | any | optional | - |
result | any | optional | - |
{
"notice": {},
"result": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/report-coding/results/example-tx"Rc settings get
GET /admin/v1/report-coding/settings
Needs the permission: config:history.
Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/report-coding/settings"Rc settings put
PUT /admin/v1/report-coding/settings
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
accept_disclosure_version | string | optional | AcceptDisclosure is the version of the disclosure the person read; required to turn the switch on. |
daily_cap | integer | optional | - |
enabled | boolean | optional | - |
mode | string | optional | - |
threshold | number | optional | - |
version | integer | optional | - |
{
"accept_disclosure_version": "1",
"daily_cap": 1,
"enabled": true,
"mode": "example",
"threshold": 1.5,
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"accept_disclosure_version":"1","daily_cap":1,"enabled":true,"mode":"example","threshold":1.5,"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/report-coding/settings"Rc decide
POST /admin/v1/report-coding/suggestions/{id}/{decision}
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
decision | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
code | string | optional | - |
display | string | optional | - |
{
"code": "example",
"display": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
suggestion | any | optional | - |
{
"suggestion": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"code":"example","display":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/report-coding/suggestions/example-id/example-decision"Rc limit get
GET /admin/v1/subscription/ai-coding-limit
Needs the permission: config:write.
Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/subscription/ai-coding-limit"Rc limit put
PUT /admin/v1/subscription/ai-coding-limit
Needs the permission: config:write.
Request body
{}Response 200
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/subscription/ai-coding-limit"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.