Gateway groups API

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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEwNiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2NX0.4l7dm-02Kgn_i6sEtQDFBkvSYYwSvR_NUNoo5u7s1Oo
Host: example.org
Cookie: 

Route

POST /api/rest/admin/gateway-groups

Body

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

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
location: http://example.org/api/rest/admin/gateway-groups/17
vary: Accept
etag: W/"2eba65c3e428c62a879314030a7e90c0"
cache-control: max-age=0, private, must-revalidate
x-request-id: 742be330-3439-48e7-b441-0c895cbeb53e
x-runtime: 0.011414
content-length: 426

Status

201 Created

Body

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