Get a task
curl --request GET \
--url https://my.server.express/api/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"kind": "reinstall",
"label": "<string>",
"status": "pending",
"progress": 123,
"step": "<string>",
"log": [
{
"at": "2023-11-07T05:31:56Z",
"text": "<string>",
"level": "info"
}
],
"result": "<unknown>",
"error": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"startedById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Tasks
Get a task
A snapshot of one task. Visible to whoever started it and to admins; anyone else gets 404. Customers get the redacted view described on GET /v1/tasks.
GET
/
v1
/
tasks
/
{id}
Get a task
curl --request GET \
--url https://my.server.express/api/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"kind": "reinstall",
"label": "<string>",
"status": "pending",
"progress": 123,
"step": "<string>",
"log": [
{
"at": "2023-11-07T05:31:56Z",
"text": "<string>",
"level": "info"
}
],
"result": "<unknown>",
"error": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"startedById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}