/slack/add/postgresql
Add Slack webhook to a configuration
Request
HTTP Method: POST
Content Type: application/json
Parameters
Property | Type | Description | Required |
---|---|---|---|
| integer(int64) | configuration ID (non-negative) | required |
| boolean | test sending Slack message before adding |
|
| string | Slack webhook to add | required |
{
"params": {
"configuration_id": 1,
"test": false,
"webhook": "string"
}
}
Response
HTTP Status: 200
Content Type: application/json
Response
Property | Type | Description |
---|---|---|
| object of type | error response |
| object of type | list of slack webhook addresses |
| boolean | response with error or not |
error_response
Property | Type | Description |
---|---|---|
| string | error message |
slack_response
Property | Type | Description |
---|---|---|
| array of string | list of webhooks addresses |
{
"error": {
"message": "string"
},
"result": {
"webhooks": [
"string"
]
},
"successful": true
}
HTTP Status: 400
Content Type: application/json
Response
Property | Type | Description |
---|---|---|
| object of type | error response |
| boolean | always false |
error_response
Property | Type | Description |
---|---|---|
| string | error message |
{
"error": {
"message": "string"
},
"successful": false
}