Returns the aggregate status log of a(n import) task at the time of the request.
1 min
GET
/episerverapi/commerce/task/{taskId}/log
Path Parameters
- taskIdstring<uuid>requiredDescriptionFormatuuid
Header Parameters
- acceptstringDescriptionDefaulttext/plainAllowedtext/plainapplication/jsontext/json
Responses
200
- JobMessage[]Description
- timestampUtcstring<date-time>DescriptionFormatdate-time
- messageTypeJobMessageType
- messagestringDescription
- stageNamestringDescription
- stageIndexinteger<int32>DescriptionFormatint32
- stageCountinteger<int32>DescriptionFormatint32
- stageProgressinteger<int32>DescriptionFormatint32
- stageTotalProgressinteger<int32>DescriptionFormatint32
- exceptionMessagestringDescription
- exceptionStackTracestringDescription
401
404
curl
curl --request GET \
--url /episerverapi/commerce/task/{taskId}/log \
--header 'accept: text/plain'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "text/plain");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/episerverapi/commerce/task/{taskId}/log", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/episerverapi/commerce/task/{taskId}/log")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["accept"] = "text/plain"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/episerverapi/commerce/task/{taskId}/log"
payload = {}
headers = {
'accept': 'text/plain',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Return the aggregate status log at the time of the request.
[
{
"timestampUtc": "",
"messageType": 0,
"message": "",
"stageName": "",
"stageIndex": "",
"stageCount": "",
"stageProgress": "",
"stageTotalProgress": "",
"exceptionMessage": "",
"exceptionStackTrace": ""
}
]401
// If user does not have enough permission for this request.
404
// If task does not exist.