From c3fd8ea124dc27dc1186f85e7ee4791617f6e2c6 Mon Sep 17 00:00:00 2001 From: CasVT Date: Wed, 28 Feb 2024 12:48:52 +0000 Subject: [PATCH] Updated API docs --- docs/api.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/api.md b/docs/api.md index a1b8775..375ace6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -831,3 +831,21 @@ Replace `` with the ID of the entry. For example: `/admin/users/2`. | ---- | ----- | ----------- | | 200 | N/A | Success | +??? POST + + Upload and apply a database file + + **Parameters (file)** + + | Name | Required | Description | Allowed values | + | ---- | -------- | ----------- | -------------- | + | file | Yes | The MIND database file | N/A | + + **Returns** + + | Code | Error | Description | + | ---- | ----- | ----------- | + | 201 | N/A | Success | + | 400 | InvalidDatabaseFile | The uploaded database file is invalid or not supported | + | 400 | KeyNotFound | A key was not found in the input that is required to be given | +