Routeset discriminators API

create new entry

POST /api/rest/admin/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.eyJzdWIiOjE4MSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzOX0.OM8QXBZF-D9DKRO5pafeDTvtULhqbZsixPwg7n0M_sc
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"ec1bac0f43c6a2d0eda6ecc1ae47b054"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6a2151ff-a435-4382-af89-52d583a4eeb5
X-Runtime: 0.014302
Content-Length: 162

Status

201 Created

Body

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