List knowledge base documents

Get a list of available knowledge base documents

Nagłówki

xi-api-keystringOpcjonalny

Parametry zapytania

page_sizeintegerOpcjonalny1-100Domyślnie 30
How many documents to return at maximum. Can not exceed 100, defaults to 30.
searchstringOpcjonalny
If specified, the endpoint returns only such knowledge base documents whose names start with this string.
show_only_owned_documentsbooleanOpcjonalnyDomyślnie falseDeprecated

If set to true, the endpoint will return only documents owned by you (and not shared from somebody else). Deprecated: use created_by_user_id instead.

created_by_user_idstringOpcjonalny

Filter documents by creator user ID. When set, only documents created by this user are returned. Takes precedence over show_only_owned_documents. Use ‘@me’ to refer to the authenticated user.

typesenumOpcjonalny
If present, the endpoint will return only documents of the given types.
Dozwolone wartości:
parent_folder_idstringOpcjonalny
If set, the endpoint will return only documents that are direct children of the given folder.
ancestor_folder_idstringOpcjonalny
If set, the endpoint will return only documents that are descendants of the given folder.
folders_firstbooleanOpcjonalnyDomyślnie false
Whether folders should be returned first in the list of documents.
sort_directionenumOpcjonalny
The direction to sort the results
Dozwolone wartości:
sort_byenumOpcjonalny
The field to sort the results by
Dozwolone wartości:
cursorstringOpcjonalny
Used for fetching next page. Cursor is returned in the response.

Odpowiedź

Successful Response
documentslist of objects
has_moreboolean
next_cursorstringOpcjonalny

Błędy

422
Knowledge Base List Request Unprocessable Entity Error