curl --request GET \
--url https://api.smokeball.com/tasks/{taskId}/subtasks/{id} \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}"
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>', Authorization: '<api-key>'}};
fetch('https://api.smokeball.com/tasks/{taskId}/subtasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.smokeball.com/tasks/{taskId}/subtasks/{id}")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/tasks/{taskId}/subtasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"parentTask": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"createdBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"completedBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"lastUpdatedBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"subject": "Confer with Mary",
"completedDate": "2020-02-15T13:00:00Z",
"completedDateOnly": "2020-02-15T00:00:00",
"createdDate": "2020-02-15T13:00:00Z",
"createdDateOnly": "2020-02-15T00:00:00",
"isCompleted": false,
"isDeleted": false,
"lastUpdated": 637847425252027400
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get a subtask
Retrieves a specified subtask.
curl --request GET \
--url https://api.smokeball.com/tasks/{taskId}/subtasks/{id} \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}"
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>', Authorization: '<api-key>'}};
fetch('https://api.smokeball.com/tasks/{taskId}/subtasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/tasks/{taskId}/subtasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.smokeball.com/tasks/{taskId}/subtasks/{id}")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/tasks/{taskId}/subtasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"parentTask": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"createdBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"completedBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"lastUpdatedBy": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"subject": "Confer with Mary",
"completedDate": "2020-02-15T13:00:00Z",
"completedDateOnly": "2020-02-15T00:00:00",
"createdDate": "2020-02-15T13:00:00Z",
"createdDateOnly": "2020-02-15T00:00:00",
"isCompleted": false,
"isDeleted": false,
"lastUpdated": 637847425252027400
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Response
When request is successful. Returns a 'SubTask' object.
Subtask resource.
Show child attributes
Show child attributes
The parent (task) of the subtask.
Show child attributes
Show child attributes
The staff member who created the subtask.
Show child attributes
Show child attributes
The staff member who completed the subtask.
Show child attributes
Show child attributes
The staff member who last updated the subtask.
Show child attributes
Show child attributes
The subject - a short description of the subtask.
"Confer with Mary"
Deprecated. Use CompletedDateOnly instead.
When the subtask was completed in UTC.
"2020-02-15T13:00:00Z"
The date when the subtask was completed.
The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
"2020-02-15T00:00:00"
Deprecated. Use CreatedDateOnly instead.
When the subtask was created in UTC.
"2020-02-15T13:00:00Z"
The date when the subtask was created.
The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
"2020-02-15T00:00:00"
True when the subtask is completed.
false
True when the subtask is deleted.
false
Last updated timestamp.
637847425252027400