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.eyJleHAiOjE3MTAyNTQ3MzIsInN1YiI6MTA3fQ.v5hH6WP8j_eFlGXD92rDzVh-Ea8BToIMu5o24Smo-Ts
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":59}}}}}

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/"290d6ae9fccd85ea61a600d428d72169"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 2ba3f072-e23b-42a4-944f-9d3762906a5c
X-Runtime: 0.022197
Content-Length: 336

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