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.eyJzdWIiOjEwMywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc4ODYwNjUxMn0.F6o27Qep1KntVF5CCVMwfCt3mU8y4gBSEnC61JtV6_o
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: cd4e5b9a-8f4f-42d9-9449-0c13febd0ce8
x-runtime: 0.016356
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"
    }
  }
}