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.eyJzdWIiOjIyMiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU3MX0.7_DLN89rnMUaIXLRSh_7kB9nvLht4nGx11rTHQ5VFpw
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: c5e9c21a-506e-4663-9b3c-305bed1c7b95
x-runtime: 0.012299
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"
      }
    }
  }
}