From 2de7e52d383646c804da2fe7611b6f84c0c49aea Mon Sep 17 00:00:00 2001 From: Marvin Bitterlich Date: Tue, 1 Dec 2026 12:12:54 +0000 Subject: [PATCH] Document the 422 on Fin Voice register Register answers 422 with a parameter_invalid error when data is not a string or an object, or when a string field such as call_id or phone_number is a list or object. Adds that response, with an example of the real body, to the register operation in 2.15, 2.16, 2.17, 2.18 and Preview. Co-Authored-By: Claude Opus 5.5 --- descriptions/0/api.intercom.io.yaml | 15 +++++++++++++++ descriptions/2.15/api.intercom.io.yaml | 15 +++++++++++++++ descriptions/2.16/api.intercom.io.yaml | 15 +++++++++++++++ descriptions/2.17/api.intercom.io.yaml | 15 +++++++++++++++ descriptions/2.18/api.intercom.io.yaml | 15 +++++++++++++++ 5 files changed, 75 insertions(+) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 80fa32fb..2ee0223f 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -37430,6 +37430,21 @@ paths: application/json: schema: $ref: "#/components/schemas/error" + '422': + description: unprocessable entity - data is not a string or an object, or a string field such as call_id or phone_number is a list or object + content: + application/json: + examples: + Invalid data type: + value: + type: error.list + request_id: null + errors: + - code: parameter_invalid + field: data + message: data must be a string or an object + schema: + $ref: "#/components/schemas/error" default: description: Unexpected error content: diff --git a/descriptions/2.15/api.intercom.io.yaml b/descriptions/2.15/api.intercom.io.yaml index 7833209d..cc17d6d4 100644 --- a/descriptions/2.15/api.intercom.io.yaml +++ b/descriptions/2.15/api.intercom.io.yaml @@ -14833,6 +14833,21 @@ paths: application/json: schema: $ref: "#/components/schemas/error" + '422': + description: unprocessable entity - data is not a string or an object, or a string field such as call_id or phone_number is a list or object + content: + application/json: + examples: + Invalid data type: + value: + type: error.list + request_id: null + errors: + - code: parameter_invalid + field: data + message: data must be a string or an object + schema: + $ref: "#/components/schemas/error" default: description: Unexpected error content: diff --git a/descriptions/2.16/api.intercom.io.yaml b/descriptions/2.16/api.intercom.io.yaml index cab9e4f9..6cd90387 100644 --- a/descriptions/2.16/api.intercom.io.yaml +++ b/descriptions/2.16/api.intercom.io.yaml @@ -23099,6 +23099,21 @@ paths: application/json: schema: $ref: "#/components/schemas/error" + '422': + description: unprocessable entity - data is not a string or an object, or a string field such as call_id or phone_number is a list or object + content: + application/json: + examples: + Invalid data type: + value: + type: error.list + request_id: null + errors: + - code: parameter_invalid + field: data + message: data must be a string or an object + schema: + $ref: "#/components/schemas/error" default: description: Unexpected error content: diff --git a/descriptions/2.17/api.intercom.io.yaml b/descriptions/2.17/api.intercom.io.yaml index 702ba79f..2a2e0e4a 100644 --- a/descriptions/2.17/api.intercom.io.yaml +++ b/descriptions/2.17/api.intercom.io.yaml @@ -33540,6 +33540,21 @@ paths: application/json: schema: $ref: "#/components/schemas/error" + '422': + description: unprocessable entity - data is not a string or an object, or a string field such as call_id or phone_number is a list or object + content: + application/json: + examples: + Invalid data type: + value: + type: error.list + request_id: null + errors: + - code: parameter_invalid + field: data + message: data must be a string or an object + schema: + $ref: "#/components/schemas/error" default: description: Unexpected error content: diff --git a/descriptions/2.18/api.intercom.io.yaml b/descriptions/2.18/api.intercom.io.yaml index 764d5cd2..a6a44a73 100644 --- a/descriptions/2.18/api.intercom.io.yaml +++ b/descriptions/2.18/api.intercom.io.yaml @@ -35282,6 +35282,21 @@ paths: application/json: schema: $ref: "#/components/schemas/error" + '422': + description: unprocessable entity - data is not a string or an object, or a string field such as call_id or phone_number is a list or object + content: + application/json: + examples: + Invalid data type: + value: + type: error.list + request_id: null + errors: + - code: parameter_invalid + field: data + message: data must be a string or an object + schema: + $ref: "#/components/schemas/error" default: description: Unexpected error content: