Revision as of 13:53, June 22, 2020 by Peter Chaplin (talk | contribs)
Export selected tasks
Method
Up to 9.0.012
GET
From 9.0.013
POST
Important
The new request has exactly the same parameters as the old one and allows you to pass the ql_expression in the request body in JSON format.Syntax
Up to 9.0.012
GET /gtl/tasks/{solutionDbid}/{page}From 9.0.013
POST /gtl/tasks/{solutionDbid}/{page}/searchHeaders
Accept: application/xml,*/*Request Body
{
"content": {
"include": [ <task_id1>, <task_id2>, ...]
},
"qlExpression": [<ql_item>, <ql_item>, ...]
}Or:
{
"content": {
"exclude": [ <task_id1>, <task_id2>, ...]
},
"qlExpression": [<ql_item>, <ql_item>, ...]
}- It is not allowed to send both "include" and "exclude" lists.
- snapshot_id is mandatory.
- The returned format is XML.
- It is necessary to set the Accept header with application/xml as the first value. The following "*/*" is needed to correctly return an error message in JSON.
- The value for the qlExpression field is the same object as the request body for the Fetch tasks request.
Comments or questions about this documentation? Contact us for support!
