Update Tutor
curl --request PUT \
--url https://api.example.com/v1/tutors/{tutor_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": true
}
'import requests
url = "https://api.example.com/v1/tutors/{tutor_id}"
payload = {
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bio: '<string>', teaching_mode: '<string>', is_published: true})
};
fetch('https://api.example.com/v1/tutors/{tutor_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://api.example.com/v1/tutors/{tutor_id}",
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([
'bio' => '<string>',
'teaching_mode' => '<string>',
'is_published' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v1/tutors/{tutor_id}"
payload := strings.NewReader("{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.example.com/v1/tutors/{tutor_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tutors/{tutor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"email": "<string>",
"placeholder_email": true,
"role": "<string>",
"status": "<string>",
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": true,
"avatar_url": "<string>",
"handle": "<string>",
"subjects": [
"<string>"
],
"created_at": "<string>",
"home_suburb": "<string>",
"home_postcode": "<string>",
"home_lat": 123,
"home_lng": 123,
"service_postcodes": [],
"serves_all_areas": true,
"max_travel_km": 123,
"in_person_arrangements": [],
"tutor_subjects": [],
"specialisations": [
"<string>"
],
"distance_km": 123,
"covers_area": true
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}Tutors
Update Tutor
Update an org tutor’s profile fields.
Only bio, teaching_mode (online | in_person | both), and is_published are
writable — partial update, send only the fields you want to change. Bank/payout/
Stripe/role/email fields are never accepted, and there is no per-tutor rate field
(rate lives in the org matrix). Returns the full updated tutor. 404 if {tutor_id}
isn’t an accepted member of your org.
PUT
/
v1
/
tutors
/
{tutor_id}
Update Tutor
curl --request PUT \
--url https://api.example.com/v1/tutors/{tutor_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": true
}
'import requests
url = "https://api.example.com/v1/tutors/{tutor_id}"
payload = {
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bio: '<string>', teaching_mode: '<string>', is_published: true})
};
fetch('https://api.example.com/v1/tutors/{tutor_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://api.example.com/v1/tutors/{tutor_id}",
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([
'bio' => '<string>',
'teaching_mode' => '<string>',
'is_published' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v1/tutors/{tutor_id}"
payload := strings.NewReader("{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.example.com/v1/tutors/{tutor_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tutors/{tutor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bio\": \"<string>\",\n \"teaching_mode\": \"<string>\",\n \"is_published\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"email": "<string>",
"placeholder_email": true,
"role": "<string>",
"status": "<string>",
"bio": "<string>",
"teaching_mode": "<string>",
"is_published": true,
"avatar_url": "<string>",
"handle": "<string>",
"subjects": [
"<string>"
],
"created_at": "<string>",
"home_suburb": "<string>",
"home_postcode": "<string>",
"home_lat": 123,
"home_lng": 123,
"service_postcodes": [],
"serves_all_areas": true,
"max_travel_km": 123,
"in_person_arrangements": [],
"tutor_subjects": [],
"specialisations": [
"<string>"
],
"distance_km": 123,
"covers_area": true
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Session not found",
"status": 404,
"details": {}
}
}Authorizations
Org API key as Token token=ei_live_...
Path Parameters
Body
application/json
PUT /v1/tutors/{id} → tutor_profiles. Partial update; only these fields are writable. Bank/payout/Stripe/role/email fields are never accepted. (No rate field — tutor_profiles.hourly_rate was dropped in phase_1c; rate lives in the org matrix.)
Response
Successful Response
Was this page helpful?