mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
api-docs: Add 'code' field to unauthorized error in delete attachments.
This commit is contained in:
committed by
Tim Abbott
parent
68fcd0a299
commit
03ba4df8ee
@@ -5023,14 +5023,15 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonError"
|
- $ref: "#/components/schemas/CodedError"
|
||||||
- example:
|
- example:
|
||||||
{
|
{
|
||||||
|
"code": "UNAUTHORIZED",
|
||||||
"result": "error",
|
"result": "error",
|
||||||
"msg": "Not logged in: API authentication or user session required",
|
"msg": "Not logged in: API authentication or user session required",
|
||||||
}
|
}
|
||||||
description: |
|
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:
|
/drafts:
|
||||||
get:
|
get:
|
||||||
operationId: get-drafts
|
operationId: get-drafts
|
||||||
|
|||||||
Reference in New Issue
Block a user