Update a Consultation Question
curl --request PATCH \
--url https://schoolmaker.co/api/v1/consultations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_ready": false,
"tag_ids": [],
"treated_at": null
}
'import requests
url = "https://schoolmaker.co/api/v1/consultations/{id}"
payload = {
"is_ready": False,
"tag_ids": [],
"treated_at": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_ready: false, tag_ids: [], treated_at: null})
};
fetch('https://schoolmaker.co/api/v1/consultations/{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://schoolmaker.co/api/v1/consultations/{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([
'is_ready' => false,
'tag_ids' => [
],
'treated_at' => null
]),
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://schoolmaker.co/api/v1/consultations/{id}"
payload := strings.NewReader("{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://schoolmaker.co/api/v1/consultations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/consultations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "QUESTION_ID",
"title": "Question about lesson planning",
"category_id": "CATEGORY_ID",
"author_id": "OWNER_USER_ID",
"author_type": "User",
"treated_at": null,
"is_ready": true,
"created_at": "2026-10-02T12:00:00.000Z",
"body": "<div class=\"trix-content\"><p>Question details</p></div>",
"tag_ids": [
"TAG_ID"
]
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments: /attributes/is_ready boolean"
}Consultations
Update a Consultation Question
Updates a consultation question. Omitted fields remain unchanged.
PATCH
/
consultations
/
{id}
Update a Consultation Question
curl --request PATCH \
--url https://schoolmaker.co/api/v1/consultations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_ready": false,
"tag_ids": [],
"treated_at": null
}
'import requests
url = "https://schoolmaker.co/api/v1/consultations/{id}"
payload = {
"is_ready": False,
"tag_ids": [],
"treated_at": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({is_ready: false, tag_ids: [], treated_at: null})
};
fetch('https://schoolmaker.co/api/v1/consultations/{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://schoolmaker.co/api/v1/consultations/{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([
'is_ready' => false,
'tag_ids' => [
],
'treated_at' => null
]),
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://schoolmaker.co/api/v1/consultations/{id}"
payload := strings.NewReader("{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://schoolmaker.co/api/v1/consultations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/consultations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_ready\": false,\n \"tag_ids\": [],\n \"treated_at\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "QUESTION_ID",
"title": "Question about lesson planning",
"category_id": "CATEGORY_ID",
"author_id": "OWNER_USER_ID",
"author_type": "User",
"treated_at": null,
"is_ready": true,
"created_at": "2026-10-02T12:00:00.000Z",
"body": "<div class=\"trix-content\"><p>Question details</p></div>",
"tag_ids": [
"TAG_ID"
]
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments: /attributes/is_ready boolean"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Question ID from this school.
Body
application/json
- Option 1
- Option 2
Question title, up to 120 characters. Cannot be blank.
Maximum string length:
120Question body as HTML or plain text. Cannot be empty. Embedded attachments and scripts are not supported.
Maximum string length:
200000Published consultation category ID. A question assigned to a meeting must stay in that meeting's category.
Required string length:
1 - 255Existing consultation tag IDs from your school. Omit to keep current tags or use [] to clear them.
Maximum array length:
100Required string length:
1 - 255Treatment date with a timezone in RFC 3339 format. Requires a question assigned to a meeting. Omit to keep the date or use null to clear it. Cannot be empty.
Response
Successful response.
Was this page helpful?