1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Update API docs for uploading a file

This commit is contained in:
David Bomba 2023-03-02 07:44:37 +11:00
parent a3de5daef8
commit 18f4fda038
2 changed files with 36 additions and 2 deletions

View File

@ -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"

View File

@ -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"