Loading...
 

Suspend or Unsuspend Users


HTTP VerbPUT
URI Template/account/{accID}/user/suspend?suspend={true|false}
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code202 Accepted
Invoked byResellers can invoke this for account in their hierarchy but not for their own account. End-clients cannot invoke this.
Response ModeAsynchronous.

Sample Request

PUT /pncp-external-api-rest/account/4663/user/suspend?suspend=true HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP M2IzMGQ3NzM3NzBhODC8yV234asdfaT0=
Content-Type: application/vnd.pncp.v.5.0+json
Content-Length: 19
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "sendEmail":false
}

Sample Response

HTTP/1.1 202 Accepted
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, 18 Apr 2012 16:54:26 GMT

{
   "resourceURL":"/task/d3400794-744b-4e4d-8035-52dc8c0fcb09"
}

Field Info

Field Name
Required
sendEmail
YES