Rate article
curl --request POST \
--url https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate \
--header 'Content-Type: application/json' \
--data '
{
"ratingValue": 123,
"ratingFeedback": "<string>"
}
'import requests
url = "https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate"
payload = {
"ratingValue": 123,
"ratingFeedback": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ratingValue: 123, ratingFeedback: '<string>'})
};
fetch('https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate', 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://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ratingValue' => 123,
'ratingFeedback' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate"
payload := strings.NewReader("{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate")
.header("Content-Type", "application/json")
.body("{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accepted": true,
"reason": "accepted"
}{
"errors": [
{
"error": "MissingHelpdeskHostnameError",
"error_code": 1106,
"message": "The X-Helpdesk-Host header is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "HelpdeskNotFoundError",
"error_code": 1107,
"message": "No help center answers on this address.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Public
Rate article
Records one vote on a published article, plus the optional free-text feedback that is the most valuable part of the block — it is where a customer tells the operator the article is wrong.
Answers 200 with accepted: false when the visitor is over the limit or
has already voted on this article in the last 24 hours, rather than an
error: from the visitor’s side the vote was registered, and a duplicate is
not their mistake to see.
The article comes from :slug inside the resolved help center; the caller
never sends an articleID.
POST
/
v1
/
public
/
articles
/
{slug}
/
rate
Rate article
curl --request POST \
--url https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate \
--header 'Content-Type: application/json' \
--data '
{
"ratingValue": 123,
"ratingFeedback": "<string>"
}
'import requests
url = "https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate"
payload = {
"ratingValue": 123,
"ratingFeedback": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ratingValue: 123, ratingFeedback: '<string>'})
};
fetch('https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate', 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://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ratingValue' => 123,
'ratingFeedback' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate"
payload := strings.NewReader("{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate")
.header("Content-Type", "application/json")
.body("{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugins-api.talqui.chat/helpdesk/v1/public/articles/{slug}/rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ratingValue\": 123,\n \"ratingFeedback\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accepted": true,
"reason": "accepted"
}{
"errors": [
{
"error": "MissingHelpdeskHostnameError",
"error_code": 1106,
"message": "The X-Helpdesk-Host header is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "HelpdeskNotFoundError",
"error_code": 1107,
"message": "No help center answers on this address.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Path Parameters
Required string length:
1 - 160Pattern:
^[a-z0-9][a-z0-9-]*$⌘I