Service Types API

update values

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

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

Route

PUT /api/rest/admin/service-types/11

Body

{"data":{"type":"service-types","id":11,"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
vary: Accept
etag: W/"6168661745f71fd5201203fd0e8da01c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 64c1d72c-160d-4ef1-b9f1-d0c9a3f0796c
x-runtime: 0.011821
content-length: 242

Status

200 OK

Body

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