/email/add/postgresql

Add email address to a configuration

Request

HTTP Method: POST
Content Type: application/json

Parameters

Property

Type

Description

Required

Property

Type

Description

Required

configuration_id

integer(int64)

configuration ID (non-negative)

required

email

string

email address to add

required

test

boolean

test sending email before adding

{ "params": { "configuration_id": 1, "email": "string", "test": false } }

Response

HTTP Status: 200

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

result

object of type email_response

list of email addresses

successful

boolean

response with error or not

email_response

Property

Type

Description

Property

Type

Description

emails

array of string

list of email addresses

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

{ "error": { "message": "string" }, "result": { "emails": [ "string" ] }, "successful": true }

HTTP Status: 400

Content Type: application/json

Response

Property

Type

Description

Property

Type

Description

error

object of type error_response

error response

successful

boolean

always false

error_response

Property

Type

Description

Property

Type

Description

message

string

error message

{ "error": { "message": "string" }, "successful": false }