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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYwLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYyfQ.bVAcQgFZxc8hrizqlF3vYi8v_4KsTKk3XqZj3i2Z_L0
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/54

Body

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

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/"8ce7f3512f163f1d7409db39f1c68d06"
cache-control: max-age=0, private, must-revalidate
x-request-id: 391b66e3-9fd8-4c6b-9883-3b3cec5f0f00
x-runtime: 0.009422
content-length: 390

Status

200 OK

Body

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