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
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
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"
}
}
}
}
}