create new entry
POST /api/rest/admin/contacts
Parameters
Name |
Description |
data[type]
|
Resource type (contacts)
|
data[attributes][email]
|
Email
|
data[attributes][notes]
|
Notes
|
data[relationships][contractor]
|
Contractor
|
Request
Headers
Route
POST /api/rest/admin/contacts
Body
{"data":{"type":"contacts","attributes":{"email":"some@mail.com","notes":"Text here..."}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "61",
"type": "contacts",
"links": {
"self": "http://example.org/api/rest/admin/contacts/61"
},
"attributes": {
"email": "some@mail.com",
"notes": "Text here..."
},
"relationships": {
"contractor": {
"links": {
"self": "http://example.org/api/rest/admin/contacts/61/relationships/contractor",
"related": "http://example.org/api/rest/admin/contacts/61/contractor"
},
"data": null
}
}
}
}