Contacts API

update values

PUT /api/rest/admin/contacts/:id

Parameters

Name Description
data[type] Resource type (contacts)
data[id] Contact ID
data[attributes][email] Email
data[attributes][notes] Notes

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MjcsInN1YiI6NDh9.ByMazrOpdA1Wn6pXdtuS2v0qt9tW-LORUZc6nNk-530
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/42

Body

{"data":{"type":"contacts","id":42,"attributes":{"email":"another@mail.com"}}}

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/"9bd0593c74a48c622008c9c3623638bf"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b1899229-538a-424e-9b88-d8f23d648ac8
X-Runtime: 0.012891
Content-Length: 350

Status

200 OK

Body

{
  "data": {
    "id": "42",
    "type": "contacts",
    "links": {
      "self": "http://example.org/api/rest/admin/contacts/42"
    },
    "attributes": {
      "email": "another@mail.com",
      "notes": null
    },
    "relationships": {
      "contractor": {
        "links": {
          "self": "http://example.org/api/rest/admin/contacts/42/relationships/contractor",
          "related": "http://example.org/api/rest/admin/contacts/42/contractor"
        }
      }
    }
  }
}