Service Types API

create new entry

POST /api/rest/admin/billing/service-types

Parameters

Name Description
data[type] Resource type (service-types)
data[attributes][name] Name
data[attributes][provisioning-class] Provisioning class
data[attributes][force-renew] Force renew
data[attributes][variables] Variables

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NDksInN1YiI6NDd9.qYf9OLxlX6B2g9XoDLolOKeVehQcB07nXHjwO_HNaLo
Host: example.org
Cookie: 

Route

POST /api/rest/admin/billing/service-types

Body

{"data":{"type":"service-types","attributes":{"name":"name","provisioning-class":"Billing::Provisioning::Logging"}}}

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/"095652c30d44d695c059166990009d21"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 23a9da11-65c3-4790-a123-cb3f3f7571c9
X-Runtime: 0.018109
Content-Length: 239

Status

201 Created

Body

{
  "data": {
    "id": "7",
    "type": "service-types",
    "links": {
      "self": "http://example.org/api/rest/admin/billing/service-types/7"
    },
    "attributes": {
      "name": "name",
      "force-renew": false,
      "provisioning-class": "Billing::Provisioning::Logging",
      "variables": null
    }
  }
}