Skip to main content
This method will assign a new string value to a Data Object. Please read more about access tokens in Remarks. This method is accessed in several ways. Each way works in the same way and requires the same permission. The only difference is the type of parameters. Both cases are listed below:

Parameters

Method 1 (general): https://api.cryptolens.io/api/data/SetStringValue Method 2 (key specific): https://api.cryptolens.io/api/data/SetStringValueToKey There are two ways to call this method: Method 3 (machine code specific): https://api.cryptolens.io/api/data/SetStringValueToMachineCode There are two ways to call this method:

Results

Example results

Remarks

  • The new StringValue may not be longer than 10000 characters in length. If it is, an error will be thrown.
  • When accessing the key specific methods (using productId and the key string), you need to either disable key lock (set it to zero) or set it to a negative number, in the same way you would have done if you would have used KeyLock. We recommend to set the KeyLock to -1 when creating the access token.

Errors