Loading...
 

Assign Pricing Profile to Account


HTTP VerbPUT
URI Template/account/{accID}/assignedpricingprofile/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

PUT /pncp-external-api-rest/account/4141/assignedpricingprofile/virtual HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json.0+json
Authorization: PNCP NjRmNmNjZWIGNDME14QzNFUXZpNzdyRWRMND0=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 64
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL
{
   "pricingProfileResource":{
      "resourceURL":"/pricingprofile/207/virtual"
   } 
}

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: Tue, 07 Feb 2012 09:58:56 GMT

{
"resourceURL":"/pricingprofile/105/virtual"
}

Field Info

Field Name
Required
pricingProfileResource
YES