Smtp connections API

update values

PUT /api/rest/admin/system/smtp-connections/:id

Parameters

Name Description
data[type] Resource type (smtp-connections)
data[id] Smtp connection ID
data[attributes][name] Name

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NjUsInN1YiI6MjM3fQ.t35KNbsXYnZhjF-ud67PlnaHtvxGzAXG26b9mhrCIMs
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/system/smtp-connections/5

Body

{"data":{"type":"smtp-connections","id":5,"attributes":{"name":"name"}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"4ab33b9ab27f860f078ffd256579081e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 24ed8351-6a91-4923-adc5-6a36612bbd4f
X-Runtime: 0.014396
Content-Length: 264

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "smtp-connections",
    "links": {
      "self": "http://example.org/api/rest/admin/system/smtp-connections/5"
    },
    "attributes": {
      "name": "name",
      "host": "host",
      "port": 25,
      "from-address": "address@email.com",
      "auth-user": null,
      "auth-password": null,
      "global": true
    }
  }
}