Admin: Search

Search every course, lesson and blog post by what they say, in the request locale, whatever state they are in: draft, archived and unlisted landing pages, courses not completed yet, lessons of the newest build and unpublished posts, each with its state. Open to any staff member (and over MCP to one holding mcp.read), who may read the content; the locale must be one their Staff Role allows. The public searchCatalogue keeps its filters.

get/api/admin/search

Request

  • The document declares no server URL.
  • Auth: API key in cookie session

Query parameters

qstring required
type'course' | 'lesson' | 'post'

The kinds of record the catalogue search finds.

Only this kind of record; every kind when absent.

pageinteger
perPageinteger

Response

The request has succeeded.

totalinteger required

Total rows across all pages (before pagination).

pageinteger required

1-based page number this response represents.

perPageinteger required

Page size used for this response.

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added