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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE3NiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwOH0.ByS04ps18oDG5X-675FEwkJcfiwWoL_bZHrplDe7O88
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-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/pops/11
vary: Accept
etag: W/"e4cbcfe6c33fb20135b2f1da3119dd72"
cache-control: max-age=0, private, must-revalidate
x-request-id: 909aebd5-6603-4c94-aa13-9aab2f705a6c
x-runtime: 0.009276
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"
    }
  }
}