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.eyJleHAiOjE3MzE1Nzg3NTEsInN1YiI6Njh9.0JYal2C-pjByhjvBaZEBQGFxRn9NSpzpsi47BsbpVkU
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/62

Body

{"data":{"type":"contacts","id":62,"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/"12805e83a4b24454a213eb80fab2a9da"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 57fcdf16-a7b6-4d0f-9d20-e36d52bd8d1a
X-Runtime: 0.015050
Content-Length: 390

Status

200 OK

Body

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