Loading...
 

Add Node Pricing Profile to All Account Pricing Profiles


HTTP VerbPUT
URI Template/account/{accID}/pricingprofile/virtual
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code200 OK
Can be invoked byResellers can invoke this for any account they own but not their own. End-clients cannot place this request.
Response ModeSynchronous.

Sample Request

Note: The JSON body of the example response has been trimmed to improve readability.

PUT /pncp-external-api-rest/account/88/pricingprofile/virtual HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP ZmE3NzM3NjBiYTI4NWZmNDc5NWJiZDA2Y2M2NDA3MTA6N1VaNVNONmE2MW0yOTM5V2p4TE5Qa3p2NVVLSDFqSTNvc1laTGRGaHZjQT0=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 5771
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "pricePoints":[
      {
         "price":370.906128,
         "pricePointResource":{
            "resourceURL":"/pricepoint/52x1"
         }
      },
      {
         "price":739.812257,
         "pricePointResource":{
            "resourceURL":"/pricepoint/0x1x2x8x3x16"
         }
      },
      {
         "price":420.093612,
         "pricePointResource":{
            "resourceURL":"/pricepoint/51x1"
         }
      },

…

      {
         "price":321.718645,
         "pricePointResource":{
            "resourceURL":"/pricepoint/0x1x2x1x3x12"
         }
      }
   ],
   "nodeResource":{
      "resourceURL":"/node/2"
   }
}

Sample Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked
Date: Wed, 14 Mar 2012 15:54:33 GMT

[
      {
      "resourceURL":"/pricingprofile/231/virtual"
      },
      {
      "resourceURL":"/pricingprofile/232/virtual”
      }
]

Field Info

Field Name
Required
nodeResource
YES
pricePoints
YES
[pricePoints].price
YES
[pricePoints].pricePointResource
YES