From 10ce6662eb4e20040ac2184f72b4adac2106f98e Mon Sep 17 00:00:00 2001 From: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> Date: Thu, 21 Aug 2025 10:57:23 +0200 Subject: [PATCH 1/2] docs: add documentation for OC-OwnerId and OC-Permissions headers Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> --- developer_manual/client_apis/WebDAV/basic.rst | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/developer_manual/client_apis/WebDAV/basic.rst b/developer_manual/client_apis/WebDAV/basic.rst index 2ff6a1934ab..af5c702fcd2 100644 --- a/developer_manual/client_apis/WebDAV/basic.rst +++ b/developer_manual/client_apis/WebDAV/basic.rst @@ -550,12 +550,18 @@ You can set some special headers that Nextcloud will interpret. Response Headers ---------------- -+-----------+------------------------------------------------+-----------------------------------------+ -| Header | Description | Example | -+===========+================================================+=========================================+ -| OC-Etag | | On creation, move and copy, | ``"50ef2eba7b74aa84feff013efee2a5ef"`` | -| | | the response contain the etag of the file. | | -+-----------+------------------------------------------------+-----------------------------------------+ -| OC-FileId | | On creation, move and copy, | | Format: ````. | -| | | the response contain the fileid of the file. | | Example: ``00000259oczn5x60nrdu`` | -+-----------+------------------------------------------------+-----------------------------------------+ ++-----------------+-----------------------------------------------+-----------------------------------------+ +| Header | Description | Example | ++=================+===============================================+=========================================+ +|| OC-Etag || On creation, move and copy, || ``"50ef2eba7b74aa84feff013efee2a5ef"`` | +|| || the response contain the etag of the file. || | ++-----------------+-----------------------------------------------+-----------------------------------------+ +|| OC-FileId || On creation, move and copy, || Format: ````. | +|| || the response contain the fileid of the file. || Example: ``00000259oczn5x60nrdu`` | ++-----------------+-----------------------------------------------+-----------------------------------------+ +|| OC-OwnerId || On creation, the response contains the owner || Example: ``admin`` | +|| || ID. || | ++-----------------+-----------------------------------------------+-----------------------------------------+ +|| OC-Permissions || On creation, the response contains the || Example: ``RGDNVW`` | +|| || permissions string. || | ++-----------------+-----------------------------------------------+-----------------------------------------+ From 306e9ce51bdc7f7c3421eb8152e2531d129aa2bb Mon Sep 17 00:00:00 2001 From: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> Date: Thu, 21 Aug 2025 18:43:58 +0200 Subject: [PATCH 2/2] fixup! docs: add documentation for OC-OwnerId and OC-Permissions headers Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> --- developer_manual/client_apis/WebDAV/basic.rst | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/developer_manual/client_apis/WebDAV/basic.rst b/developer_manual/client_apis/WebDAV/basic.rst index af5c702fcd2..2da5e5a51bb 100644 --- a/developer_manual/client_apis/WebDAV/basic.rst +++ b/developer_manual/client_apis/WebDAV/basic.rst @@ -550,18 +550,18 @@ You can set some special headers that Nextcloud will interpret. Response Headers ---------------- -+-----------------+-----------------------------------------------+-----------------------------------------+ -| Header | Description | Example | -+=================+===============================================+=========================================+ -|| OC-Etag || On creation, move and copy, || ``"50ef2eba7b74aa84feff013efee2a5ef"`` | -|| || the response contain the etag of the file. || | -+-----------------+-----------------------------------------------+-----------------------------------------+ -|| OC-FileId || On creation, move and copy, || Format: ````. | -|| || the response contain the fileid of the file. || Example: ``00000259oczn5x60nrdu`` | -+-----------------+-----------------------------------------------+-----------------------------------------+ -|| OC-OwnerId || On creation, the response contains the owner || Example: ``admin`` | -|| || ID. || | -+-----------------+-----------------------------------------------+-----------------------------------------+ -|| OC-Permissions || On creation, the response contains the || Example: ``RGDNVW`` | -|| || permissions string. || | -+-----------------+-----------------------------------------------+-----------------------------------------+ ++-------------------+-----------------------------------------------+-----------------------------------------+ +| Header | Description | Example | ++===================+===============================================+=========================================+ +|| OC-Etag || On creation, move and copy, || ``"50ef2eba7b74aa84feff013efee2a5ef"`` | +|| || the response contain the etag of the file. || | ++-------------------+-----------------------------------------------+-----------------------------------------+ +|| OC-FileId || On creation, move and copy, || Format: ````. | +|| || the response contain the fileid of the file. || Example: ``00000259oczn5x60nrdu`` | ++-------------------+-----------------------------------------------+-----------------------------------------+ +|| X-NC-OwnerId || On creation, the response contains the owner || Example: ``admin`` | +|| || ID. || | ++-------------------+-----------------------------------------------+-----------------------------------------+ +|| X-NC-Permissions || On creation, the response contains the || Example: ``RGDNVW`` | +|| || permissions string. || | ++-------------------+-----------------------------------------------+-----------------------------------------+