Routeset discriminators API

create new entry

POST /api/rest/admin/routing/routeset-discriminators

Parameters

Name Description
data[type] Resource type (routeset-discriminators)
data[attributes][name] Name

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTgyfQ.oOdNsu34u2McDTz39FuG6-hjF2YBl58MYvzlppiQHqs
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/routeset-discriminators

Body

{"data":{"type":"routeset-discriminators","attributes":{"name":"name"}}}

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/"8da4c9651d1b13a2dbf243d8a07d3045"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9ec53450-3885-46f8-a24d-10e0ef2ee835
X-Runtime: 0.011792
Content-Length: 170

Status

201 Created

Body

{
  "data": {
    "id": "16",
    "type": "routeset-discriminators",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/routeset-discriminators/16"
    },
    "attributes": {
      "name": "name"
    }
  }
}