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.eyJleHAiOjE3MTAyNTQ3MzEsInN1YiI6MTA2fQ.Oxd68NqeNaPs2uD0_ZW3aUAfE6W67sNs1EAvmeUOcZ0
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":57}}}}}

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/"60d978530f276c1ba55814e68730c41a"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 3e269956-4ce3-4e01-8484-628383f2009a
X-Runtime: 0.016197
Content-Length: 336

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