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.eyJleHAiOjE3MTAyNTQ3MzksInN1YiI6MjE3fQ.wMVI7Owg00iiaMZXP6qS569fQvzdJfBYULBgFdbmC9M
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: cf558ac6-23cb-4ead-860b-a9e27653fcee
X-Runtime: 0.021431
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
    }
  }
}