Legacy | Add Tokens to User

Adds tokens to the specified user.

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

Request syntax

Copy
https://mycloud.perfectomobile.com/services/users/<userId>?operation=addTokens&securityToken=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, xml
account.tokens* string
The number of tokens to add to the user.

* Mandatory parameter

Response

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

Example

This example shows the request for adding 10 tokens user JohnSmith.

Copy

Request

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