Smtp connections API

update values

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

Parameters

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIzOCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU3Mn0.JGeNI-M3Uc7gPjalTWoTs5Q4lSOrm3nqsCOcwFbnMO4
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"ee925e1642a3f480f9ba8912cb091a43"
cache-control: max-age=0, private, must-revalidate
x-request-id: a51eb824-1763-431f-9436-5f27458c1f80
x-runtime: 0.011414
content-length: 257

Status

200 OK

Body

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