Rateplans API

update values

PUT /api/rest/admin/routing/rateplans/:id

Parameters

Name Description
data[type] Resource type (rateplans)
data[id] Rateplan ID
data[attributes][name] Name
data[attributes][profit-control-mode-id] Profit control mode id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzUsInN1YiI6MTU4fQ.YkmS8pQ2xl-26noPmcfYeanqduf3G7Cgx8fOA2O8kjg
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing/rateplans/24

Body

{"data":{"type":"rateplans","id":24,"attributes":{"name":"name","profit-control-mode-id":1}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"d772df788d9849604371362c26d79dd5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6bedc8d4-1008-4a75-83f8-2becd6c7600e
X-Runtime: 0.013851
Content-Length: 169

Status

200 OK

Body

{
  "data": {
    "id": "24",
    "type": "rateplans",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/rateplans/24"
    },
    "attributes": {
      "name": "name",
      "profit-control-mode-id": 1
    }
  }
}