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

Add request body to API docs for "Create Work package in project"

Aaron Contreras19610ffb7437
diff --git a/docs/api/apiv3/paths/project_work_packages.yml b/docs/api/apiv3/paths/project_work_packages.yml
index 4975802c7a1..93a28089ccb 100644
--- a/docs/api/apiv3/paths/project_work_packages.yml
+++ b/docs/api/apiv3/paths/project_work_packages.yml
@@ -120,6 +120,11 @@ post:
When calling this endpoint the client provides a single object, containing at least the properties and links that
are required, in the body. The required fields of a WorkPackage can be found in its schema, which is embedded in
the respective form. Note that it is only allowed to provide properties or links supporting the write operation.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '../components/schemas/work_package_model.yml'
parameters:
- description: Project id
example: '1'