|
|
@ -300,6 +300,16 @@ paths:
|
|
|
|
allOf: [
|
|
|
|
allOf: [
|
|
|
|
"$ref": "definitions/push_rule.yaml"
|
|
|
|
"$ref": "definitions/push_rule.yaml"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|
delete:
|
|
|
|
delete:
|
|
|
@ -340,6 +350,16 @@ paths:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: object # empty json object
|
|
|
|
type: object # empty json object
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|
put:
|
|
|
|
put:
|
|
|
@ -446,6 +466,16 @@ paths:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist (when updating a push rule).
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
429:
|
|
|
|
429:
|
|
|
|
description: This request was rate-limited.
|
|
|
|
description: This request was rate-limited.
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
@ -498,6 +528,16 @@ paths:
|
|
|
|
type: boolean
|
|
|
|
type: boolean
|
|
|
|
description: Whether the push rule is enabled or not.
|
|
|
|
description: Whether the push rule is enabled or not.
|
|
|
|
required: ["enabled"]
|
|
|
|
required: ["enabled"]
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|
put:
|
|
|
|
put:
|
|
|
@ -553,6 +593,16 @@ paths:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|
"/pushrules/{scope}/{kind}/{ruleId}/actions":
|
|
|
|
"/pushrules/{scope}/{kind}/{ruleId}/actions":
|
|
|
@ -608,6 +658,16 @@ paths:
|
|
|
|
- string
|
|
|
|
- string
|
|
|
|
- object
|
|
|
|
- object
|
|
|
|
required: ["actions"]
|
|
|
|
required: ["actions"]
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|
put:
|
|
|
|
put:
|
|
|
@ -671,5 +731,15 @@ paths:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
|
|
|
|
404:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The push rule does not exist.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_NOT_FOUND",
|
|
|
|
|
|
|
|
"error": "The push rule was not found."
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Push notifications
|
|
|
|
- Push notifications
|
|
|
|