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.eyJzdWIiOjYzLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzgxMjc5Mzk1fQ.upI600QzQ0o29a4e5Nd1YnWig9fVtVFPTZGMypeEKSE
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/57

Body

{"data":{"type":"contacts","id":57,"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/"fed81116e0d35a039430f64ad54abfec"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5baa9ac5-a1e5-4726-904c-91575e31485b
x-runtime: 0.009891
content-length: 390

Status

200 OK

Body

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