Search task variables
POST/v1/tasks/:taskId/variables/search
This method returns a list of task variables for the specified taskId
and variableName
.
If the request body is not provided or if the variableNames
parameter in the request is empty, all variables associated with the task will be returned.
Request
Path Parameters
The ID of the task.
- application/json
Body
- Array [
- ]
Names of variables to find.
includeVariables object[]
An array of variable names that should be included in the response.
The name of the variable.
Always return the full value of the variable?
Responses
- 200
- 404
On success returned.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The unique identifier of the variable.
The name of the variable.
The value of the variable.
Does the previewValue
contain the truncated value or full value?
A preview of the variable's value. Limited in size.
draft object
The draft value of the variable.
The value of the variable.
Does the previewValue
contain the truncated value or full value?
A preview of the variable's value. Limited in size.
[
{
"id": "string",
"name": "string",
"value": "string",
"isValueTruncated": true,
"previewValue": "string",
"draft": {
"value": "string",
"isValueTruncated": true,
"previewValue": "string"
}
}
]
An error is returned when the task with the taskId
is not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
An integer that represents the HTTP status code of the error response. For example, 400 indicates a "Bad Request" error, 404 indicates a "Not Found" error, and so on.
A string that provides a brief description of the error that occurred.
Error instance UUID for lookup (eg. in log messages).
{
"status": 0,
"message": "string",
"instance": "string"
}