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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTYsInN1YiI6MTI2fQ.pEnZp72TLM2Egca7O43HW01BC4QgbwmDKQvYsNMi_jE
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":79}}}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"42f87e206d147c1ddbf38405fd87b0f3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b275b61a-876b-4938-89a6-c5614a057893
X-Runtime: 0.019532
Content-Length: 376

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"
        }
      }
    }
  }
}