api-docs: Add 'code' field to unauthorized error in delete attachments.

This commit is contained in:
Lauryn Menard 2023-09-01 14:20:43 +02:00 committed by Tim Abbott
parent 68fcd0a299
commit 03ba4df8ee
1 changed files with 3 additions and 2 deletions

View File

@ -5023,14 +5023,15 @@ paths:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/JsonError"
- $ref: "#/components/schemas/CodedError"
- example:
{
"code": "UNAUTHORIZED",
"result": "error",
"msg": "Not logged in: API authentication or user session required",
}
description: |
A typical failed JSON response for when the user is not logged in
A typical failed JSON response for when the user is not logged in:
/drafts:
get:
operationId: get-drafts