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