From 1fd0ea7fa902aefe4823c80eb81623442a417b4e Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Thu, 23 Jul 2026 10:05:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D(docs)=20fix=20resource=20server=20?= =?UTF-8?q?code=20snippet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One needs to be authenticated while requesting the external API. --- documentation/resource_server.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/resource_server.md b/documentation/resource_server.md index d2d353115..df7a182e1 100644 --- a/documentation/resource_server.md +++ b/documentation/resource_server.md @@ -49,7 +49,7 @@ EXTERNAL_API = { **Endpoints:** -- `documents`: Controls `/external_api/v1.0/documents/`. Available actions: `list`, `retrieve`, `create`, `update`, `destroy`, `trashbin`, `children`, `restore`, `move`,`versions_list`, `versions_detail`, `favorite_detail`,`link_configuration`, `attachment_upload`, `media_auth`, `ai_transform`, `ai_translate`, `ai_proxy`. Always allowed actions: `favorite_list`, `duplicate`. +- `documents`: Controls `/external_api/v1.0/documents/`. Available actions: `list`, `retrieve`, `create`, `update`, `destroy`, `trashbin`, `children`, `restore`, `move`, `versions_list`, `versions_detail`, `favorite_detail`, `link_configuration`, `attachment_upload`, `media_auth`, `ai_transform`, `ai_translate`, `ai_proxy`. Always allowed actions: `favorite_list`, `duplicate`. - `document_access`: `/external_api/v1.0/documents/{id}/accesses/`. Available actions: `list`, `retrieve`, `create`, `update`, `partial_update`, `destroy` - `document_invitation`: Controls `/external_api/v1.0/documents/{id}/invitations/`. Available actions: `list`, `retrieve`, `create`, `partial_update`, `destroy` - `users`: Controls `/external_api/v1.0/documents/`. Available actions: `get_me`. @@ -87,6 +87,7 @@ Here is an example of a view that creates a document from a markdown file at the "file": file, }, format="multipart", + headers={"Authorization": f"Bearer {access_token}"}, ) response.raise_for_status()