The Kukie.io API answers with the code validation_failed and the HTTP status 400 or 422.
Read the code member of the answer to tell errors apart, never title or detail.
What it means and what to do
Some parameters need changing. Each entry in errors names one and says what to change.
This is the answer's usual detail. An operation can say more in its own detail, so read that too.
Members that come with this code
| Name | Type | Description |
|---|---|---|
errors
|
array of objects | One entry for each parameter that needs changing. It has entries with validation_failed, and with a 409 conflict for a site's domain or external_id that another site already uses. With other codes it is normally empty. |
errors[].param
|
string | The query parameter, header or body member the entry is about. |
errors[].code
|
string | What is wrong with it, for example invalid or unknown_parameter. |
errors[].message
|
string | What to change. |
Operations that answer with it
- Read API usage (
GET /v1/usage) - List sites (
GET /v1/sites) - Create a site (
POST /v1/sites) - Update a site (
PATCH /v1/sites/{siteKey}) - Delete a site (
DELETE /v1/sites/{siteKey}) - Check the banner installation (
POST /v1/sites/{siteKey}/installation-check) - Get banner settings (
GET /v1/sites/{siteKey}/banner) - Change banner settings (
PATCH /v1/sites/{siteKey}/banner) - List banner texts (
GET /v1/sites/{siteKey}/banner/texts) - Get one language's banner texts (
GET /v1/sites/{siteKey}/banner/texts/{locale}) - Replace one language's banner texts (
PUT /v1/sites/{siteKey}/banner/texts/{locale}) - List a site's region rules (
GET /v1/sites/{siteKey}/region-rules) - Create a region rule (
POST /v1/sites/{siteKey}/region-rules) - Get a region rule (
GET /v1/sites/{siteKey}/region-rules/{regionCode}) - Change a region rule (
PATCH /v1/sites/{siteKey}/region-rules/{regionCode}) - Delete a region rule (
DELETE /v1/sites/{siteKey}/region-rules/{regionCode}) - List a site's cookies (
GET /v1/sites/{siteKey}/cookies) - List a site's cookie categories (
GET /v1/sites/{siteKey}/categories) - Move cookies into a category (
POST /v1/sites/{siteKey}/cookies/categorise) - Get the accessibility widget settings (
GET /v1/sites/{siteKey}/accessibility-widget) - Change the accessibility widget settings (
PATCH /v1/sites/{siteKey}/accessibility-widget) - List the accessibility widget texts (
GET /v1/sites/{siteKey}/accessibility-widget/texts) - Replace one language's widget texts (
PUT /v1/sites/{siteKey}/accessibility-widget/texts/{locale}) - List a site's scans (
GET /v1/sites/{siteKey}/scans) - Start a cookie scan (
POST /v1/sites/{siteKey}/scans) - Read a scan (
GET /v1/sites/{siteKey}/scans/{scanId}) - List the cookies a scan found (
GET /v1/sites/{siteKey}/scans/{scanId}/cookies) - Read a scan report (
GET /v1/sites/{siteKey}/scans/{scanId}/report) - Download a scan report as PDF (
GET /v1/sites/{siteKey}/scans/{scanId}/report/pdf) - Read a consent record (
GET /v1/sites/{siteKey}/consent-records/{consentId}) - Read a site's consent statistics (
GET /v1/sites/{siteKey}/consent-stats) - Copy a site's settings to other sites (
POST /v1/sites/{siteKey}/copy-settings) - List webhook endpoints (
GET /v1/webhook-endpoints) - Add a webhook endpoint (
POST /v1/webhook-endpoints) - Get a webhook endpoint (
GET /v1/webhook-endpoints/{endpointId}) - Change a webhook endpoint (
PATCH /v1/webhook-endpoints/{endpointId}) - Delete a webhook endpoint (
DELETE /v1/webhook-endpoints/{endpointId}) - Rotate a webhook endpoint's signing secret (
POST /v1/webhook-endpoints/{endpointId}/rotate-secret) - Send a test event (
POST /v1/webhook-endpoints/{endpointId}/test) - List events (
GET /v1/events) - Get an event (
GET /v1/events/{eventId})
Every error body has the same members. The errors section of the API reference lists them, with every code.
