From 675d3fbe715eda740449a34f4d2976e2f6834630 Mon Sep 17 00:00:00 2001 From: natalyatodorova Date: Wed, 11 Jun 2025 22:10:29 +0100 Subject: [PATCH] ODM-12373: add multipart/form-data to import job schema --- openapi/v1/job.yaml | 14 ++++++++++++++ openapi/v1/odmApi.yaml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/openapi/v1/job.yaml b/openapi/v1/job.yaml index 6014bf02..b5478bf4 100644 --- a/openapi/v1/job.yaml +++ b/openapi/v1/job.yaml @@ -350,6 +350,20 @@ paths: application/json: schema: $ref: "#/components/schemas/ImportAFileRequest" + multipart/form-data: + schema: + type: object + properties: + studyAccession: + type: string + dataClass: + type: string + metadata: + type: string + format: binary + data: + type: string + format: binary required: false responses: "200": diff --git a/openapi/v1/odmApi.yaml b/openapi/v1/odmApi.yaml index 638f6879..56797b1d 100644 --- a/openapi/v1/odmApi.yaml +++ b/openapi/v1/odmApi.yaml @@ -16188,6 +16188,20 @@ paths: application/json: schema: $ref: "#/components/schemas/ImportAFileRequest" + multipart/form-data: + schema: + type: "object" + properties: + studyAccession: + type: "string" + dataClass: + type: "string" + metadata: + type: "string" + format: "binary" + data: + type: "string" + format: "binary" required: false responses: "200":