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.eyJzdWIiOjYyLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDAxfQ.nPGQldS6thfMMeUI1vtadPrpqlg81iDgrwKT43w4_Eg
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/56

Body

{"data":{"type":"contacts","id":56,"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/"5b09127021f276d50230c4ffdcd679f2"
cache-control: max-age=0, private, must-revalidate
x-request-id: e28b74d3-8c97-4cc2-9254-b9f4e572350f
x-runtime: 0.010869
content-length: 390

Status

200 OK

Body

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