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.eyJzdWIiOjI0NSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc4NjM2MDI5OH0.5sFRiutRYyZMPyCcatdgHJIJnityP1-3WXiIEpRs4mk
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/"d50a9462cb8b747ee5b910ae6a4ab84f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8494a80e-df34-4a90-b288-adf4046cd586
x-runtime: 0.012877
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": "78.93",
      "renew-price": "123.45",
      "created-at": "2026-08-10T04:12:38.375Z",
      "renew-at": null,
      "renew-period": "Disabled",
      "uuid": "2465305f-9411-4486-af1f-56c9182f8497"
    },
    "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"
        }
      }
    }
  }
}