Faqs / Get one
Returns a single FAQ by id. Always includes the conflicting FAQ data if present.
Route: /api/{tenant:minlength(2)}/v{version:apiVersion}/faqs/{id}
Method: GET
Authorisation: Minimum role: USER
Request Arguments
| Name | Type | Source |
|---|---|---|
| id | Int32 |
Request body example
Response object
Response status: 200 (OK)
Response type: DTO_faq
Wrapper: DTO_response_wrap
Other response statuses: 400 (BadRequest), 403 (Forbidden)
Response body example
DTO_faq
| Name | Type | ReadOnly | Description |
|---|---|---|---|
| cluster | DTO_reference | Cluster | |
| cluster_label | DTO_reference | Cluster label | |
| conflicting_faq_ids | Int32[] | Conflicting faq ids | |
| conflicting_faqs | DTO_faq[] | Conflicting faqs | |
| id | Int32 | Id | |
| status | ENUM faq_status | Status | |
| question | String | Question | |
| answer | String | Answer | |
| embeddings_status_enum_id | Int32 | Embeddings status enum id |
DTO_reference
| Name | Type | ReadOnly | Description |
|---|---|---|---|
| id | Int32 | The id of the reference | |
| label | Object | ReadOnly | Name/Label from referenced object. |
DTO_faq
| Name | Type | ReadOnly | Description |
|---|---|---|---|
| cluster | DTO_reference | Cluster | |
| cluster_label | DTO_reference | Cluster label | |
| conflicting_faq_ids | Int32[] | Conflicting faq ids | |
| conflicting_faqs | DTO_faq[] | Conflicting faqs | |
| id | Int32 | Id | |
| status | ENUM faq_status | Status | |
| question | String | Question | |
| answer | String | Answer | |
| embeddings_status_enum_id | Int32 | Embeddings status enum id |
ENUM faq_status
| Value | Name | Description |
|---|---|---|
| 0 | UNKNOWN | UNKNOWN |
| 1 | SUGGESTED | SUGGESTED |
| 11 | MANUALLY_CREATED | MANUALLY_CREATED |
| 21 | APPROVED_AS_IS | APPROVED_AS_IS |
| 22 | APPROVED_WITH_EDITS | APPROVED_WITH_EDITS |
| 31 | DECLINED | DECLINED |
| 32 | DUPLICATED_IGNORE | DUPLICATED_IGNORE |
| 41 | REMOVED | REMOVED |