Service Types API

create new entry

POST /api/rest/admin/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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyMSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU3MX0.ubRGniFdYKSSnnk7107uEXSX2vAwsnQTNVuPDKJClsQ
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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-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/service-types/10
vary: Accept
etag: W/"cd97f09166179e58dafe2c6d6b5e4e3c"
cache-control: max-age=0, private, must-revalidate
x-request-id: fcdd6290-409b-45a0-9749-ee5a6a77c697
x-runtime: 0.009605
content-length: 233

Status

201 Created

Body

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