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

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

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/"724d63df1f02d0e6c2e1b32f28b1685d"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e2621676-6d5b-44cc-9782-941a94e41e0f
X-Runtime: 0.021055
Content-Length: 376

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