update values
PUT /api/rest/admin/gateway-groups/:id
Parameters
Name |
Description |
data[type]
|
Resource type (gateway-groups)
|
data[id]
|
Gateway group ID
|
data[attributes][name]
|
Name
|
data[relationships][vendor]
|
Vendor
|
Request
Headers
Route
PUT /api/rest/admin/gateway-groups/18
Body
{"data":{"type":"gateway-groups","id":18,"attributes":{"name":"name"},"relationships":{"vendor":{"data":{"type":"contractors","id":81}}}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "18",
"type": "gateway-groups",
"links": {
"self": "http://example.org/api/rest/admin/gateway-groups/18"
},
"attributes": {
"name": "name"
},
"relationships": {
"vendor": {
"links": {
"self": "http://example.org/api/rest/admin/gateway-groups/18/relationships/vendor",
"related": "http://example.org/api/rest/admin/gateway-groups/18/vendor"
},
"data": {
"type": "contractors",
"id": "81"
}
}
}
}
}