create new entry
POST /api/rest/admin/system/smtp-connections
Parameters
Name |
Description |
data[type]
|
Resource type (smtp-connections)
|
data[attributes][name]
|
Name
|
data[attributes][host]
|
Host
|
data[attributes][port]
|
Port
|
data[attributes][from-address]
|
From address
|
data[attributes][auth-user]
|
Auth user
|
data[attributes][auth-password]
|
Auth password
|
data[attributes][global]
|
Global
|
Request
Headers
Route
POST /api/rest/admin/system/smtp-connections
Body
{"data":{"type":"smtp-connections","attributes":{"name":"name","host":"host","port":25,"from-address":"address@email.com"}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "smtp-connections",
"links": {
"self": "http://example.org/api/rest/admin/system/smtp-connections/4"
},
"attributes": {
"name": "name",
"host": "host",
"port": 25,
"from-address": "address@email.com",
"auth-user": null,
"auth-password": null,
"global": true
}
}
}