diff --git a/docs/openapi.json b/docs/openapi.json index e0c585cd..742251aa 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -150,8 +150,8 @@ "application/json" ], "responses": { - "200": { - "description": "Request succeeded. The file has been added to the workspace.", + "201": { + "description": "Request succeeded. The workflow has been created along with its workspace", "examples": { "application/json": { "message": "Workflow workspace has been created.", diff --git a/reana_workflow_controller/rest.py b/reana_workflow_controller/rest.py index bed761bc..3d330982 100644 --- a/reana_workflow_controller/rest.py +++ b/reana_workflow_controller/rest.py @@ -216,9 +216,10 @@ def create_workflow(): # noqa type: string description: Workflow type. responses: - 200: + 201: description: >- - Request succeeded. The file has been added to the workspace. + Request succeeded. The workflow has been created along + with its workspace schema: type: object properties: