diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 6b7bd39064b4..7e8fb1f123f0 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -11994,7 +11994,7 @@ paths: default: $ref: "#/components/responses/default" "/api/v1/invoices/{id}/upload": - put: + post: tags: - invoices summary: "Add invoice document" @@ -12012,6 +12012,23 @@ paths: type: string format: string example: D2J234DFA + requestBody: + description: "File Upload Body" + required: true + content: + multipart/form-data: + schema: + type: object + properties: + _method: + type: string + example: PUT + documents: + type: array + items: + description: "Array of binary documents for upload" + type: string + format: binary responses: 200: description: "Returns the Invoice object" diff --git a/openapi/paths/invoices.yaml b/openapi/paths/invoices.yaml index e28a1af59321..e9f8d75ef96b 100644 --- a/openapi/paths/invoices.yaml +++ b/openapi/paths/invoices.yaml @@ -568,7 +568,7 @@ default: $ref: "#/components/responses/default" "/api/v1/invoices/{id}/upload": - put: + post: tags: - invoices summary: "Add invoice document" @@ -586,6 +586,23 @@ type: string format: string example: D2J234DFA + requestBody: + description: "File Upload Body" + required: true + content: + multipart/form-data: + schema: + type: object + properties: + _method: + type: string + example: PUT + documents: + type: array + items: + description: "Array of binary documents for upload" + type: string + format: binary responses: 200: description: "Returns the Invoice object"