cURL
curl --request PATCH \
--url http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id} \
--header 'Content-Type: application/json; charset=utf-8' \
--data '
{
"title": "<string>",
"area": "<string>",
"clear_area": true,
"body": "<unknown>"
}
'import requests
url = "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}"
payload = {
"title": "<string>",
"area": "<string>",
"clear_area": True,
"body": "<unknown>"
}
headers = {"Content-Type": "application/json; charset=utf-8"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json; charset=utf-8'},
body: JSON.stringify({
title: '<string>',
area: '<string>',
clear_area: true,
body: JSON.stringify('<unknown>')
})
};
fetch('http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_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_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'area' => '<string>',
'clear_area' => true,
'body' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}Session
Patch sessions work items
PATCH
/
sessions
/
{session_id}
/
work-items
/
{work_item_id}
cURL
curl --request PATCH \
--url http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id} \
--header 'Content-Type: application/json; charset=utf-8' \
--data '
{
"title": "<string>",
"area": "<string>",
"clear_area": true,
"body": "<unknown>"
}
'import requests
url = "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}"
payload = {
"title": "<string>",
"area": "<string>",
"clear_area": True,
"body": "<unknown>"
}
headers = {"Content-Type": "application/json; charset=utf-8"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json; charset=utf-8'},
body: JSON.stringify({
title: '<string>',
area: '<string>',
clear_area: true,
body: JSON.stringify('<unknown>')
})
};
fetch('http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_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_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'area' => '<string>',
'clear_area' => true,
'body' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/sessions/{session_id}/work-items/{work_item_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"title\": \"<string>\",\n \"area\": \"<string>\",\n \"clear_area\": true,\n \"body\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}Body
application/json; charset=utf-8