Disconnect policies API

create new entry

POST /api/rest/admin/disconnect-policies

Parameters

Name Description
data[type] Resource type (disconnect-policies)
data[attributes][name] Name

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjk3LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDA0fQ.1y0wqu4zA9ObgIdlOGPHRtpQpGOylHiVh7ayywBMZV0
Host: example.org
Cookie: 

Route

POST /api/rest/admin/disconnect-policies

Body

{"data":{"type":"disconnect-policies","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
location: http://example.org/api/rest/admin/disconnect-policies/7
vary: Accept
etag: W/"11c6786d283431fddcbc2ec32e0be9a1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 26686202-581d-4293-9271-4219b479366a
x-runtime: 0.010272
content-length: 152

Status

201 Created

Body

{
  "data": {
    "id": "7",
    "type": "disconnect-policies",
    "links": {
      "self": "http://example.org/api/rest/admin/disconnect-policies/7"
    },
    "attributes": {
      "name": "name"
    }
  }
}