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
Route
PUT /api/rest/admin/contacts/62
Body
{"data":{"type":"contacts","id":62,"attributes":{"email":"another@mail.com"}}}
Response
Headers
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"
}
}
}
}
}