GET Public
Returns the collection tree with permalinks. Visitors without the manage_categories capability only see collections that are not empty.
Handler: get_collection_tree()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/article-collections" POST Access check: require_can_manage_collections
Creates a collection. Returns 201.
Handler: create_collection()
Parameters of POST /article-collections Parameter Type Required Default or allowed values title string Yes — parent_id integer — — description string — — icon string — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections" \
-H "Content-Type: application/json" \
-d '{"title": "…"}' src/domains/articles/routes.php:341
GET Public
Returns one collection, with its permalink.
Handler: get_collection()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/article-collections/{id}" PUT PATCH Access check: require_can_manage_collections
Updates a collection's title, description, icon, parent or menu order. Only those fields are accepted.
Handler: update_collection()
Parameters of PUT/PATCH /article-collections/{id} Parameter Type Required Default or allowed values title string — — parent_id integer — — menu_order integer — — description string — — icon string — —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}" DELETE Access check: require_can_manage_collections
Deletes a collection.
Handler: delete_collection()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}" src/domains/articles/routes.php:490
GET Public
Returns the articles in a collection, optionally including their content.
Handler: get_collection_articles()
Parameters of GET /article-collections/{id}/articles Parameter Type Required Default or allowed values include_content boolean — false
curl Copycurl "https://example.com/wp-json/davo/v1/article-collections/{id}/articles" POST Access check: require_can_manage_collections
Adds an article to a collection. With a position or from_collection_id it places the article at that position and removes it from the source collection, as drag and drop does.
Handler: add_article_to_collection()
Parameters of POST /article-collections/{id}/articles Parameter Type Required Default or allowed values article_id integer Yes — menu_order integer — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles" \
-H "Content-Type: application/json" \
-d '{"article_id": 1}' src/domains/articles/routes.php:526
DELETE Access check: require_can_manage_collections
Removes an article from a collection.
Handler: remove_article_from_collection()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles/{article_id}" src/domains/articles/routes.php:571
PUT PATCH Access check: require_can_manage_collections
Sets a collection as an article's primary collection.
Handler: set_article_primary_collection()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/articles/{article_id}/primary" src/domains/articles/routes.php:583
PUT PATCH Access check: require_can_manage_collections
Re-parents a collection (parent_id, or the top level when omitted/0) and sets the order of the target's children to collection_ids.
Handler: move_collection()
Parameters of PUT/PATCH /article-collections/{id}/move Parameter Type Required Default or allowed values parent_id — — — collection_ids array Yes —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/move" \
-H "Content-Type: application/json" \
-d '{"collection_ids": []}' src/domains/articles/routes.php:469
PUT PATCH Access check: require_can_manage_collections
Reorders the articles in a collection from a list of article ids.
Handler: reorder_collection_articles()
Parameters of PUT/PATCH /article-collections/{id}/reorder Parameter Type Required Default or allowed values article_ids array Yes —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/{id}/reorder" \
-H "Content-Type: application/json" \
-d '{"article_ids": []}' src/domains/articles/routes.php:593
GET Access check: require_can_use_builder
One page of the article library, with pagination in the standard headers.
Handler: get_builder_articles()
Parameters of GET /article-collections/builder/articles Parameter Type Required Default or allowed values category_id string — — assignment string — all | assigned | unassigned search string — — page integer — — per_page integer — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/articles" src/domains/articles/routes.php:438
GET Access check: require_can_use_builder
Returns the categories available to the collection builder.
Handler: get_builder_categories()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/categories" src/domains/articles/routes.php:428
GET Access check: require_can_use_builder
Returns the collection structure for the builder.
Handler: get_builder_structure()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/builder/structure" src/domains/articles/routes.php:418
PUT PATCH Access check: require_can_manage_collections
Sets the order of the collections under one parent (parent_id, or the top level when omitted/0) to the order of collection_ids.
Handler: reorder_collections()
Parameters of PUT/PATCH /article-collections/order Parameter Type Required Default or allowed values parent_id — — — collection_ids array Yes —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/article-collections/order" \
-H "Content-Type: application/json" \
-d '{"collection_ids": []}' src/domains/articles/routes.php:394
GET Public
Lists articles, filterable by status, type, category, tag, author and search term, with sorting and pagination. Totals are returned in the X-WP-Total and X-WP-TotalPages headers.
Handler: get_articles()
Parameters of GET /articles Parameter Type Required Default or allowed values status string — — article_type string — — category_id integer — — tag_id integer — — tag_ids array — — author_id integer — — search string — — include_content boolean — false sort string — — page integer — — per_page integer — —
curl Copycurl "https://example.com/wp-json/davo/v1/articles" POST Access check: require_can_create
Creates an article. Returns 201.
Handler: create_article()
Parameters of POST /articles Parameter Type Required Default or allowed values title string Yes — content string — — excerpt string — — status string — — article_type string — — visibility string — — version string — — category_ids array — — tag_ids array — — scheduled_at string — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles" \
-H "Content-Type: application/json" \
-d '{"title": "…"}' src/domains/articles/routes.php:68
GET Public
Returns one article for the current visitor.
Handler: get_article()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/articles/{id}" PUT PATCH Access check: require_can_edit
Updates an article.
Handler: update_article()
Parameters of PUT/PATCH /articles/{id} Parameter Type Required Default or allowed values title string — — content string — — excerpt string — — article_type string — — visibility string — — version string — — category_ids array — — tag_ids array — —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}" DELETE Access check: require_can_delete
Deletes an article. Pass force to delete it permanently.
Handler: delete_article()
Parameters of DELETE /articles/{id} Parameter Type Required Default or allowed values force boolean — —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}" src/domains/articles/routes.php:142
POST Access check: require_can_edit
Marks an article as deprecated, optionally pointing to a replacement article.
Handler: deprecate_article()
Parameters of POST /articles/{id}/deprecate Parameter Type Required Default or allowed values replacement_id integer — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/deprecate" src/domains/articles/routes.php:274
GET Public
Returns the articles related to an article.
Handler: get_related_articles()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/articles/{id}/related" src/domains/articles/routes.php:204
POST Access check: require_can_edit
Links two articles as related.
Handler: add_related_article()
Parameters of POST /articles/{id}/related Parameter Type Required Default or allowed values related_article_id integer Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/related" \
-H "Content-Type: application/json" \
-d '{"related_article_id": 1}' src/domains/articles/routes.php:307
DELETE Access check: require_can_edit
Removes the link between two related articles.
Handler: remove_related_article()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/related/{related_id}" src/domains/articles/routes.php:324
POST Access check: require_can_edit
Schedules an article to publish at a given time.
Handler: schedule_article()
Parameters of POST /articles/{id}/schedule Parameter Type Required Default or allowed values scheduled_at string Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/schedule" \
-H "Content-Type: application/json" \
-d '{"scheduled_at": "…"}' src/domains/articles/routes.php:258
PUT PATCH Access check: require_can_edit
Updates an article's SEO fields: title, description, canonical URL and noindex.
Handler: update_article_seo()
Parameters of PUT/PATCH /articles/{id}/seo Parameter Type Required Default or allowed values title string — — description string — — canonical string — — noindex boolean — —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/seo" src/domains/articles/routes.php:188
GET Public
Returns the previous and next articles within a collection.
Handler: get_article_siblings()
Parameters of GET /articles/{id}/siblings Parameter Type Required Default or allowed values collection_id integer Yes —
curl Copycurl "https://example.com/wp-json/davo/v1/articles/{id}/siblings?collection_id=1" src/domains/articles/routes.php:214
GET Public
Returns the sidebar widgets for an article.
Handler: get_article_sidebar()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/articles/{id}/sidebar" src/domains/articles/routes.php:616
POST Access check: require_can_edit
Clears the deprecated flag on an article.
Handler: undeprecate_article()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/undeprecate" src/domains/articles/routes.php:290
POST Access check: require_can_edit
The source has no description for this route.
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/{id}/{action}" src/domains/articles/routes.php:247
GET Access check: require_can_manage_collections
Gated the same way collection management is (manage_categories) — this is sitewide aggregate data for an admin audience, not a per-article permission.
Handler: get_dashboard_stats()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/dashboard" src/domains/articles/routes.php:633
GET Access check: require_can_manage_collections
Whether the public documentation home exists. It is an ordinary Page using the Docs domain's reader template, and nothing creates one automatically — until it exists there is no page for visitors to browse the collections from. The actual lookup lives in the Docs domain (davo_docs_reader_home_status) — see describe_docs_home() for why this goes through a filter rather than a direct call.
Handler: get_docs_home()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/docs-home" POST Access check: require_can_manage_collections
Create and publish the documentation home Page (409 if one already exists).
Handler: create_docs_home()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/docs-home" src/domains/articles/routes.php:375
POST Access check: require_can_manage_collections
Backfills content-similarity terms for existing published articles, one batch per call — call repeatedly (advancing offset by the previous response's processed count) until done is true. Needed once, after this feature is first deployed, for any article whose content hasn't changed since (a normal edit already triggers this automatically via Articles_Publishing_Service).
Handler: reindex_similarity()
Parameters of POST /articles/reindex-similarity Parameter Type Required Default or allowed values offset integer — — limit integer — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/articles/reindex-similarity" src/domains/articles/routes.php:643