Services API

update values

PUT /api/rest/admin/services/:id

Parameters

Name Description
data[type] Resource type (services)
data[id] Service type ID
data[attributes][name] Name
data[attributes][renew-price] Renew price
data[attributes][variables] Variables

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIzNCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAxMH0.AIJ0iY09TCYAcoRmRr-5osANm2nVvmefoDCHfzARimg
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/services/11

Body

{"data":{"type":"services","id":11,"attributes":{"name":"name","renew-price":123.45,"variables":{"foo":"bar"}}}}

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/"900ac2e072837ce3000fe4f41caa7b95"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6ac15464-3701-4f09-968e-640f77e8e44e
x-runtime: 0.012131
content-length: 1122

Status

200 OK

Body

{
  "data": {
    "id": "11",
    "type": "services",
    "links": {
      "self": "http://example.org/api/rest/admin/services/11"
    },
    "attributes": {
      "name": "name",
      "variables": {
        "foo": "bar"
      },
      "state": "Active",
      "initial-price": "76.62",
      "renew-price": "123.45",
      "created-at": "2026-02-27T15:11:50.932Z",
      "renew-at": null,
      "renew-period": "Disabled",
      "uuid": "97f6a735-4b2c-43bb-b83d-77b8909e5ed2"
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/admin/services/11/relationships/account",
          "related": "http://example.org/api/rest/admin/services/11/account"
        },
        "data": {
          "type": "accounts",
          "id": "93"
        }
      },
      "service-type": {
        "links": {
          "self": "http://example.org/api/rest/admin/services/11/relationships/service-type",
          "related": "http://example.org/api/rest/admin/services/11/service-type"
        }
      },
      "transactions": {
        "links": {
          "self": "http://example.org/api/rest/admin/services/11/relationships/transactions",
          "related": "http://example.org/api/rest/admin/services/11/transactions"
        }
      },
      "package-counters": {
        "links": {
          "self": "http://example.org/api/rest/admin/services/11/relationships/package-counters",
          "related": "http://example.org/api/rest/admin/services/11/package-counters"
        }
      }
    }
  }
}