mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
api-docs: Add 'code' field to errors for deleting only org owner.
This commit is contained in:
parent
cb921300ce
commit
3e369bcf96
@ -8097,9 +8097,10 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/JsonError"
|
||||
- $ref: "#/components/schemas/CodedError"
|
||||
- example:
|
||||
{
|
||||
"code": "BAD_REQUEST",
|
||||
"msg": "Cannot deactivate the only organization owner",
|
||||
"result": "error",
|
||||
}
|
||||
@ -10624,9 +10625,10 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/JsonError"
|
||||
- $ref: "#/components/schemas/CodedError"
|
||||
- example:
|
||||
{
|
||||
"code": "BAD_REQUEST",
|
||||
"msg": "Cannot deactivate the only organization owner",
|
||||
"result": "error",
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user