Legacy | Reduce Tokens from User

Reduces tokens from the specified user.

Restriction: This API is deprecated in the latest Perfecto UI.

Request syntax

Copy
https://mycloud.perfectomobile.com/services/users/<userId>?operation=reduceTokens&user=value&password=value&account.tokens=value

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
user string

Deprecated. The name of the user running the operation.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
password string

Deprecated. The password for the user.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
responseFormat string json The format to use for the response:json or xml
account.tokens* integer
The number of tokens to reduce from the user.

* Mandatory parameter

Response

Name Description
status success if the operation completed successfully; otherwise failure.

Example

This example shows the request for reducing 10 tokens for user John Smith.

Copy

Request

https://mycloud.perfectomobile.com/services/users/JohnSmith?operation=reduceTokens&securityToken=<your_token>&account.tokens=10
Copy
Response
Response{
    "status":"success"}