create new entry
POST /api/rest/admin/gateway-groups
Parameters
Name |
Description |
data[type]
|
Resource type (gateway-groups)
|
data[attributes][name]
|
Name
|
data[relationships][vendor]
|
Vendor
|
Request
Headers
Route
POST /api/rest/admin/gateway-groups
Body
{"data":{"type":"gateway-groups","attributes":{"name":"name"},"relationships":{"vendor":{"data":{"type":"contractors","id":79}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "17",
"type": "gateway-groups",
"links": {
"self": "http://example.org/api/rest/admin/gateway-groups/17"
},
"attributes": {
"name": "name"
},
"relationships": {
"vendor": {
"links": {
"self": "http://example.org/api/rest/admin/gateway-groups/17/relationships/vendor",
"related": "http://example.org/api/rest/admin/gateway-groups/17/vendor"
},
"data": {
"type": "contractors",
"id": "79"
}
}
}
}
}