Pops API

create new entry

POST /api/rest/admin/pops

Parameters

Name Description
data[type] Resource type (pops)
data[id] POP ID
data[attributes][name] Name

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzMsInN1YiI6MTI1fQ.Q-eL-DrP-DHRIdwoIi1v_3O0qU2M-TK-LOLU1nf43yo
Host: example.org
Cookie: 

Route

POST /api/rest/admin/pops

Body

{"data":{"type":"pops","id":11,"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/"e4cbcfe6c33fb20135b2f1da3119dd72"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 03132e2e-c08f-4d4f-a689-c3f1ed9fb9d8
X-Runtime: 0.013343
Content-Length: 124

Status

201 Created

Body

{
  "data": {
    "id": "11",
    "type": "pops",
    "links": {
      "self": "http://example.org/api/rest/admin/pops/11"
    },
    "attributes": {
      "name": "name"
    }
  }
}