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.eyJzdWIiOjIzOSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3NjM2NTc0M30.50GYPjpzlAvt1nZfVKMa_dtflX2LZEIHVD6sAiatlWk
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/"1080c2c2d5b20c12f465ce467a7a926d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9f3df359-f58c-43cc-ac80-cf672fcb400b
x-runtime: 0.011881
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": "96.14",
      "renew-price": "123.45",
      "created-at": "2026-04-16T15:18:43.780Z",
      "renew-at": null,
      "renew-period": "Disabled",
      "uuid": "de90b416-fe52-43ae-a882-a45612f82b68"
    },
    "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"
        }
      }
    }
  }
}