Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#45908] fixed 403 response for preparation

Eric Schubertfad6b71986f1
diff --git a/docs/api/apiv3/paths/storage_files.yml b/docs/api/apiv3/paths/storage_files.yml
index 676118fc766..61f4a3e25b3 100644
--- a/docs/api/apiv3/paths/storage_files.yml
+++ b/docs/api/apiv3/paths/storage_files.yml
@@ -44,19 +44,6 @@ get:
_type: Error
errorIdentifier: urn:openproject-org:api:v3:errors:InvalidQuery
message: The given parent is not a directory.
- '403':
- content:
- application/hal+json:
- schema:
- $ref: '../components/schemas/error_response.yml'
- example:
- _type: Error
- errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission
- message: You are not authorized to access this resource.
- description: |-
- Returned if the client does not have sufficient permissions.
-
- **Required permission:** manage file links
'404':
content:
application/hal+json:
diff --git a/docs/api/apiv3/paths/storage_files_prepare_upload.yml b/docs/api/apiv3/paths/storage_files_prepare_upload.yml
index a78d0892994..d620d2fcba1 100644
--- a/docs/api/apiv3/paths/storage_files_prepare_upload.yml
+++ b/docs/api/apiv3/paths/storage_files_prepare_upload.yml
@@ -41,6 +41,19 @@ post:
_type: Error
errorIdentifier: urn:openproject-org:api:v3:errors:InvalidQuery
message: The given parent is not a directory.
+ '403':
+ content:
+ application/hal+json:
+ schema:
+ $ref: '../components/schemas/error_response.yml'
+ example:
+ _type: Error
+ errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission
+ message: You are not authorized to access this resource.
+ description: |-
+ Returned if the client does not have sufficient permissions.
+
+ **Required permission:** manage file links
'404':
content:
application/hal+json: