Set SMTP connection limits
PUT/v1/smtpbasic/connections/:mailer_id
Sets the minimum and maximum number of SMTP connections the service may open to this basic SMTP mailer's server. The "connections" key is required on this endpoint; a body without it ({}) is rejected with 400. Send {"connections": {"min": 2, "max": 8}} to set a range: min and max are whole numbers from 1 to 50 and min must not be greater than max. Send {"connections": null} to go back to the provider default for the host. On create (POST /v1/smtpbasic/verify) and PUT /v1/smtpbasic/update, config.connections stays optional.
Request
Path Parameters
Mailer ID
- application/json
Body
required
Connection limits: the connections key is required, null goes back to the default
connections
object
nullable
required
Possible values: >= 1 and <= 50
Possible values: >= 1 and <= 50
Responses
- 200
- 400
- 404
- 409
- 500
Connection limits updated
- application/json
- Schema
- Example (from schema)
Schema
{
"mailer_id": "01JC3BBW8S9YGX2VNKG5MD7BTA",
"success": true
}
Bad Request: connections key missing, range outside 1 to 50, min greater than max, or not a basic SMTP mailer
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"success": false
}
Not Found: config not found
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"success": false
}
Conflict: the mailer changed at the same time, retry
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"success": false
}
Internal error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"success": false
}