From d1a58f9ce98aa0e3f6b1b317f935d7ef6e8950b0 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 6 Feb 2022 15:46:02 +0100 Subject: [PATCH] Updated assets post to multipart --- api.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api.yaml b/api.yaml index 3893b50..136d6ef 100644 --- a/api.yaml +++ b/api.yaml @@ -362,16 +362,17 @@ paths: summary: Adds a new asset to an article requestBody: content: - application/json: + multipart/form-data: schema: type: object properties: name: type: string - description: Name of the asset - content: + description: Name of the file + file: type: string - description: The asset itself. Must be encoded as base64 + format: binary + description: The file itself security: - cookie: [] responses: