Skip to content

Update API reference to Directus 11.17.3#66

Open
kheiner wants to merge 36 commits intodirectus:mainfrom
kheiner:fix/update-oas-spec-to-v-11-17-3
Open

Update API reference to Directus 11.17.3#66
kheiner wants to merge 36 commits intodirectus:mainfrom
kheiner:fix/update-oas-spec-to-v-11-17-3

Conversation

@kheiner
Copy link
Copy Markdown
Contributor

@kheiner kheiner commented Apr 26, 2026

Adds missing endpoints, schema properties, and code samples to bring the OpenAPI spec in line with the current Directus release (I may have accidentally swept in upcoming release items)

What's changed

New endpoints

  • TUS resumable uploads => POST /files/tus, GET/PATCH/DELETE /files/tus/{id}
  • Asset downloads => GET /assets/files (ZIP), GET /assets/folder/{id} (ZIP)
  • Schema apply => adds the force parameter introduced in 8c4df17
  • Utils => POST /utils/revert/{revision} (previously undocumented), POST
    /utils/translations/generate (v11.17.x)
  • Extensions => full rewrite to match UUID-based routing from v10.10.0: adds DELETE
    /extensions/{id}, extensions marketplace registry (list, install, reinstall, uninstall); removes orphaned bundle/name path; SDK samples deferred pending upstream fixes (#27310, #27311, #27312)
  • AI => POST /ai/chat, POST /ai/object, POST /ai/files
  • MCP => GET /mcp, POST /mcp (JSON-RPC 2.0 over HTTP)

Schema updates

  • settings => adds ai_* and mcp_* configuration properties
  • resolves pre-existing errors for missing 4xx responses.

Code sample fixes

  • Standardizes all // Not supported in GraphQL placeholders to use block scalar format (source: |)
  • Standardizes codeSample url for SDK to directus_project_url

Note: I used Claude to help here but I stand by the contributions and have checked them myself. I would appreciate a second set of eyes because I'm not confident in my GraphQL knowledge.

Fixes #66 via 8c8894f, cd1155d, 06f409e, 5258f8d, 5ef3270, 8f2049e, be5e777, 6759120 ( by @gaetansenn)
Fixes #65 via cd1155d
Fixes #62 via 148f3b5
Fixes #61 via 8c8894f
Fixes #57 via 66f60ef
Fixes #56 via cfbec27
Fixes #53 via 06f409e
Fixes #47 via d48849f (by @ComfortablyCoding)
Fixes #43 via c1a95c6 (by @gaetansenn)
Fixes #42 via 93e41ad
Fixes #41 via 01e3af8
Fixes #19 via bbe68ff
Fixes #16 via bbe68ff

gaetansenn and others added 24 commits November 7, 2025 19:19
Changed 'data' type from array to object with properties for name, label, driver, and icon.
Added details explaining that oath is not available in Directus SDK and GraphQL. Fixes directus#42 

This should also enable the REST endpoint to display.
Resolves directus#16

Add `type: object` to schema for:
 - Export Data to a File
 - Generate a Hash
 - Verify a Hash
 - Manually Sort Items in Collection
utils/hash/generate and utils/hash/verify contained a `.` at the end of
summary which is inconsistent with the rest of the project.
Adds Schema reference as well as the applicable CRUD options.

NOTE: I opted to clarify in filenames that they reference accessRules
rather than trying to figure out how to pluralize accesses in a way that
makes sense.

Fixes directus#40
TODO: the SDK examples need to be revisited after the following issues
are resolved in the monorepo
directus/directus#27310
directus/directus#27311
directus/directus#27312
Revert has been around a while, looks like it was just missed in
previous spec.
Translations was added in v.11.17.x
An enhancement to directus#61 commit 2ac6094 :
- Add more details to explain conditions that bypass might be necessary
- Version updated, force is introduced in
8c4df17bb6463d0678bff985c161d1376b980325 but there's not a tagged
release. 11.17.3 is at least closest active release right now.
@kheiner
Copy link
Copy Markdown
Contributor Author

kheiner commented Apr 26, 2026

Will supersede #63 if approved.

kheiner and others added 5 commits April 26, 2026 13:33
Resolved conflicts by keeping POST method and application/zip responses
(matching API implementation) over pr-26006's incorrect GET variants.
Also fixed duplicate YAML key in oauth.yaml introduced by prior merge.

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Comment thread openapi/paths/auth/oauth/_provider/oauthProvider.yaml Outdated
Comment thread openapi/paths/items/_collection/updateItems.yaml
kheiner added 4 commits April 26, 2026 15:56
…distinct entries

- restore singleton as it's own path with PATCH and GET only => I had to
double up the ghost RTL character to make that happen (see directus#64)
- fix request body schemas for updateItems and deleteItems (keys and
query forms)
- fix title casing
create ignore file for redocly to supress warnings regarding ping and
health
Copy link
Copy Markdown
Contributor Author

@kheiner kheiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this now. I hope you all like it 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants