Knowledge base
Tips and tricks Best practice guides, FAQ & more
Find tutorials, guides and use case examples in the
Learning centerGet Variable by Name
Returns details of a specific permanent variable identified by the variable name.
http://{controllerMachine}:{controllerPort}/api/v3/variables/MyVariable
Field | Type | Description | Comment |
---|---|---|---|
name | string | Name of the variable. | Variable name is case sensitive |
curl -X GET --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://localhost:9001/api/v3/variables/MyVariable'
$headers = @{}
$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")
Invoke-WebRequest -Uri "http://localhost:9001/api/v3/variables/MyVariable" -ContentType "application/json" -Headers $headers -Method GET
Information about the Variable Name and its Value.
{ |
Field | Type | Description | Values |
---|---|---|---|
$id | string | ID of internal object | |
Name | string | Name of the variable | |
Value | LSignal | Object holds values for Variable | "$id", "$type", "Value" |
LSignal | Object | ||
$id | string | ID of internal object | |
Type | Leapwork.Models.Models.LDataTypes.Ltext | Static data type | |
Value | string | Value of in variable |
Response Code
200 (OK)
401 (Unauthorized,incorrect access key)
404 (Variable not found)
500 (Internal Server Error)
©2024, Leapwork. All rights reserved.