Rateplans API

update values

PUT /api/rest/admin/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.eyJzdWIiOjE3NywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzOH0.anzN8LtsxbgG0vr02r437QDAsYGeYgwvt2ymnuodffI
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/rateplans/25

Body

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

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/"1287b588635994adeab316ec0c2ea364"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9ffd91fb-3f5a-4d01-845f-3630fca223e8
X-Runtime: 0.015132
Content-Length: 276

Status

200 OK

Body

{
  "data": {
    "id": "25",
    "type": "rateplans",
    "links": {
      "self": "http://example.org/api/rest/admin/rateplans/25"
    },
    "attributes": {
      "name": "name",
      "profit-control-mode-id": 1
    },
    "relationships": {
      "rate-groups": {
        "links": {
          "related": "http://example.org/api/rest/admin/rateplans/25/rate-groups"
        }
      }
    }
  }
}