Mark Read
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/readimport requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$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://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "comment_mentioned",
"sourceType": "projects",
"sourceId": "<string>",
"target": {
"type": "<string>",
"id": "<string>"
},
"author": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"payload": {},
"reason": "mentioned",
"readAt": "<string>",
"occurredAt": "<string>"
}Notifications
Mark Read
PATCH
/
v1
/
workspaces
/
{workspaceId}
/
notifications
/
{notificationId}
/
read
Mark Read
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/readimport requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$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://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/notifications/{notificationId}/read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "comment_mentioned",
"sourceType": "projects",
"sourceId": "<string>",
"target": {
"type": "<string>",
"id": "<string>"
},
"author": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"payload": {},
"reason": "mentioned",
"readAt": "<string>",
"occurredAt": "<string>"
}Response
200 - application/json
Available options:
comment_mentioned, comment_replied, project_assigned, family_released, collaboration_decided, seat_requested, seat_assigned, invitation_accepted, join_requested, project_limit_requested, location_limit_requested, trial_ending, rfq_assigned, rfq_quote_submitted, rfq_vendor_message, submittal_assigned, submittal_review_requested, submittal_vendor_comment, submittal_activity, approval_assigned, approval_returned, approval_completed, approval_reminder, approval_activity, approval_discussion_reply, client_presentation_submitted, client_presentation_signed ⌘I