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.eyJleHAiOjE3MzE1Nzg3NTgsInN1YiI6MTQ1fQ.1kUtyl4UuyIFvuIwNZn9emjDBVsPTZzPQIaCCrvbk0o
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: ef4c1843-5302-4943-84d5-6b0e25903208
X-Runtime: 0.013084
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"
    }
  }
}