Service Types API

update values

PUT /api/rest/admin/billing/service-types/:id

Parameters

Name Description
data[type] Resource type (service-types)
data[id] Service type ID
data[attributes][name] Name
data[attributes][provisioning-class] Provisioning class

Request

Headers

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

Route

PUT /api/rest/admin/billing/service-types/8

Body

{"data":{"type":"service-types","id":8,"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/"e5fe0a9851bec6b743f7d661901ec56b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6f5c5b02-9c55-47e1-af5e-bc59ad86da44
X-Runtime: 0.016796
Content-Length: 248

Status

200 OK

Body

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