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.eyJzdWIiOjY2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzkyNjE5ODAyfQ.JI9qAmNcHgooYSZgyhx5ebs9-ZSKdtfvUTTcLXyPkhk
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/contacts/60

Body

{"data":{"type":"contacts","id":60,"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/"dfadfd54def5e3b7b35465a0452fe6b6"
cache-control: max-age=0, private, must-revalidate
x-request-id: 082e6972-1c15-4b24-9f50-f1162e8caeee
x-runtime: 0.013629
content-length: 390

Status

200 OK

Body

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