Update jet stream reply
curl --request PUT \
--url https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Supplier confirmed the shingles ship Thursday morning."
}
'import requests
url = "https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}"
payload = { "body": "Supplier confirmed the shingles ship Thursday morning." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('Supplier confirmed the shingles ship Thursday morning.')})
};
fetch('https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}', 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.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'body' => 'Supplier confirmed the shingles ship Thursday morning.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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 := "https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}"
payload := strings.NewReader("{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}"
response = http.request(request)
puts response.read_body{
"id": 72400,
"tenant_id": 12,
"jet_stream_id": 55210,
"user_id": 1230,
"body": "Supplier confirmed the shingles ship Thursday morning.",
"created_at": "2025-02-12 10:45:00"
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The requested resource could not be found."
}{
"message": "The first name field is required.",
"errors": {
"first_name": [
"The first name field is required."
]
}
}Jet Stream Replies
Update jet stream reply
Updates a reply’s text. Only the fields you send are changed, and only the reply’s author can update it — anyone else receives a 403. This doesn’t re-notify the stream’s participants.
PUT
/
jet-streams
/
{jetStreamId}
/
replies
/
{jetStreamReplyId}
Update jet stream reply
curl --request PUT \
--url https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Supplier confirmed the shingles ship Thursday morning."
}
'import requests
url = "https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}"
payload = { "body": "Supplier confirmed the shingles ship Thursday morning." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('Supplier confirmed the shingles ship Thursday morning.')})
};
fetch('https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}', 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.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'body' => 'Supplier confirmed the shingles ship Thursday morning.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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 := "https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}"
payload := strings.NewReader("{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/jet-streams/{jetStreamId}/replies/{jetStreamReplyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"Supplier confirmed the shingles ship Thursday morning.\"\n}"
response = http.request(request)
puts response.read_body{
"id": 72400,
"tenant_id": 12,
"jet_stream_id": 55210,
"user_id": 1230,
"body": "Supplier confirmed the shingles ship Thursday morning.",
"created_at": "2025-02-12 10:45:00"
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The requested resource could not be found."
}{
"message": "The first name field is required.",
"errors": {
"first_name": [
"The first name field is required."
]
}
}Authorizations
Path Parameters
Body
application/json
Response
The updated jet stream reply.