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:
parent
a3de5daef8
commit
18f4fda038
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user