Reinstate User
OVERVIEW
Overview
Reinstate a user who is currently suspended within Publisher. This API call is used to reinstate a suspended user within the system. The user identifier is the user id of the user or their email address.
Since v5.0
HTTP Request
POST /api/2/users/<ID>/reinstate
OR
POST /api/2/users/<EMAIL>/reinstate
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the user to reinstate |
The email address of the user to reinstate |
HTTP Headers
HTTP Request Header | Description | Example |
---|---|---|
Authorization | The API Authorisation token. | "Bearer XXXXXXXXXXXXX" |
Accept |
The format of the expected response
If no parameter is set, JSON is the default response given. |
"application/xml" |
HTTP Response
Success
HTTP response 200 with User Summary Object
(Example below)
Error
Example HTTP Request & Response
POST
http://example.com/context/api/2/users/3/reinstate
JSON Response
{
"user": {
"id": 3,
"email": "user@domain.com",
"link": "http://example.com/context/api/2/users/3"
}
}
XML Response
<user>
<id>3</id>
<email>user@domain.com</email>
<atom:link rel="self" href="http://example.com/context/api/2/users/3" />
</user>
Comments
0 Comments