Legacy | Set User Tokens
Resets the tokens amount of the user specified by to a specific value.
Restriction: This API is deprecated in the latest Perfecto UI.
Request syntax
Copy
https://mycloud.perfectomobile.com/services/users/<userId>?operation=setTokens&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 or xml |
account.tokens* | integer |
|
The number of tokens to set for the user. |
* Mandatory parameter
Response
Name | Description |
---|---|
status | success if the operation completed successfully; otherwise failure. |
Example
This example shows the request for setting 50 tokens for user John Smith.
Copy
Request
https://mycloud.perfectomobile.com/services/users/JohnSmith?operation=setTokens&securityToken=<your_token>&account.tokens=50