Gateway groups API

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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEwNywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2NX0.VPPdp0ITApDQz9QFuMMvNvFDymhw-Rdb9IXewm8yXqQ
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/gateway-groups/18

Body

{"data":{"type":"gateway-groups","id":18,"attributes":{"name":"name"},"relationships":{"vendor":{"data":{"type":"contractors","id":57}}}}}

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/"fb82b6accad83df132d7f244b7fdfe5d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 95e765f7-f2eb-467a-8e89-bed69ba51ea2
x-runtime: 0.015659
content-length: 425

Status

200 OK

Body

{
  "data": {
    "id": "18",
    "type": "gateway-groups",
    "links": {
      "self": "http://example.org/api/rest/admin/gateway-groups/18"
    },
    "attributes": {
      "name": "name",
      "balancing-mode-id": 2,
      "max-rerouting-attempts": 5
    },
    "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": "57"
        }
      }
    }
  }
}