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: default:
$ref: "#/components/responses/default" $ref: "#/components/responses/default"
"/api/v1/invoices/{id}/upload": "/api/v1/invoices/{id}/upload":
put: post:
tags: tags:
- invoices - invoices
summary: "Add invoice document" summary: "Add invoice document"
@ -12012,6 +12012,23 @@ paths:
type: string type: string
format: string format: string
example: D2J234DFA 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: responses:
200: 200:
description: "Returns the Invoice object" description: "Returns the Invoice object"

View File

@ -568,7 +568,7 @@
default: default:
$ref: "#/components/responses/default" $ref: "#/components/responses/default"
"/api/v1/invoices/{id}/upload": "/api/v1/invoices/{id}/upload":
put: post:
tags: tags:
- invoices - invoices
summary: "Add invoice document" summary: "Add invoice document"
@ -586,6 +586,23 @@
type: string type: string
format: string format: string
example: D2J234DFA 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: responses:
200: 200:
description: "Returns the Invoice object" description: "Returns the Invoice object"